Fixed current again
This commit is contained in:
parent
990beabb3a
commit
09c638a8d4
@ -208,7 +208,7 @@ export class LPF2Hub extends Hub {
|
||||
} else if (data[3] === 0x3b && this.type !== Consts.Hubs.POWERED_UP_REMOTE) { // Current (Non-PUP Remote)
|
||||
data = this._padMessage(data, 6);
|
||||
const current = data.readUInt16LE(4) / 4096;
|
||||
this._current = current;
|
||||
this._current = current * 100;
|
||||
return;
|
||||
} else if (data[3] === 0x3c) { // Current (PUP Remote)
|
||||
data = this._padMessage(data, 6);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-poweredup",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.12",
|
||||
"description": "A Node.js module to interface with LEGO Powered UP components.",
|
||||
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
|
||||
"main": "dist/poweredup.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user