Fixed current again

This commit is contained in:
Nathan Kunicki 2018-08-14 13:34:34 +01:00
parent 990beabb3a
commit 09c638a8d4
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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",