node-switchbot 1.8.2-beta.0 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-switchbot",
3
- "version": "1.8.2-beta.0",
3
+ "version": "1.8.2-beta.2",
4
4
  "description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
5
5
  "main": "./lib/switchbot.js",
6
6
  "files": [
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "readmeFilename": "README.md",
37
37
  "dependencies": {
38
- "@abandonware/noble": "1.9.2-20"
38
+ "@abandonware/noble": "1.9.2-21"
39
39
  },
40
40
  "devDependencies": {
41
- "npm-check-updates": "^16.10.7"
41
+ "npm-check-updates": "^16.10.8"
42
42
  }
43
43
  }