Skip to content

Commit 0d3de3f

Browse files
authored
Merge pull request #12 from girtgirt/master
Make txPower from UInt8 to Int8
2 parents ff51fe7 + 7e84108 commit 0d3de3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser-ibeacon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ BeaconParserIbeacon.prototype.parse = function(peripheral) {
3737
uuid : uuid,
3838
major: manu.slice(20, 22).readUInt16BE(0),
3939
minor: manu.slice(22, 24).readUInt16BE(0),
40-
txPower: manu.slice(24, 25).readUInt8(0)
40+
txPower: manu.slice(24, 25).readInt8(0)
4141
};
4242
};
4343

0 commit comments

Comments
 (0)