Merge pull request #50 from nutki/pr-9

fixed address readout
This commit is contained in:
Nathan Kellenicki 2019-12-03 09:56:23 -08:00 committed by GitHub
commit 396765c8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ export class LPF2Hub extends Hub {
// primary MAC Address
} else if (data[3] === 0x0d) {
this._primaryMACAddress = LPF2Hub.decodeMACAddress(data.slice(4, 10));
this._primaryMACAddress = LPF2Hub.decodeMACAddress(data.slice(5));
// Battery level reports
} else if (data[3] === 0x06) {