@mschaeffler/node-red-bthome 1.3.0 → 1.4.0
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.
- package/bthome.js +2 -2
- package/package.json +1 -1
package/bthome.js
CHANGED
|
@@ -4,7 +4,7 @@ const Rawdata = require( "./rawdata.js" );
|
|
|
4
4
|
const BtEvent = require( "./btevent.js" );
|
|
5
5
|
|
|
6
6
|
class TypeIds {
|
|
7
|
-
static bluDW =
|
|
7
|
+
static bluDW = 2;
|
|
8
8
|
static bluRemote = 9;
|
|
9
9
|
}
|
|
10
10
|
Object.freeze( TypeIds );
|
|
@@ -266,7 +266,7 @@ module.exports = function(RED) {
|
|
|
266
266
|
setData( "channel", rawdata.getUInt8() + 1 );
|
|
267
267
|
break;
|
|
268
268
|
case 0xF0:
|
|
269
|
-
item.typeId = rawdata.getUInt16();
|
|
269
|
+
item.typeId = rawdata.getUInt16() & 0xFF;
|
|
270
270
|
break;
|
|
271
271
|
case 0xF1:
|
|
272
272
|
item.version = {
|