From 09c638a8d40a88f33cc935d75c6aa44fd2ccd043 Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Tue, 14 Aug 2018 13:34:34 +0100 Subject: [PATCH] Fixed current again --- lpf2hub.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lpf2hub.ts b/lpf2hub.ts index 167dcf9..962a805 100644 --- a/lpf2hub.ts +++ b/lpf2hub.ts @@ -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); diff --git a/package.json b/package.json index 048244d..f1f03f4 100644 --- a/package.json +++ b/package.json @@ -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",