node-switchbot 1.8.2-beta.1 → 1.8.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -201,8 +201,7 @@ class SwitchbotAdvertising {
|
|
|
201
201
|
|
|
202
202
|
const temp_sign = byte4 & 0b10000000 ? 1 : -1;
|
|
203
203
|
const temp_c = temp_sign * ((byte4 & 0b01111111) + (byte3 & 0b00001111) / 10);
|
|
204
|
-
const temp_f = (temp_c * 9 / 5) + 32;
|
|
205
|
-
temp_f = Math.round(temp_f * 10) / 10;
|
|
204
|
+
const temp_f = Math.round(((temp_c * 9 / 5) + 32) * 10) / 10;
|
|
206
205
|
|
|
207
206
|
const data = {
|
|
208
207
|
model: "T",
|
package/package.json
CHANGED