Bumped to 1.2.0 - fixed rotation sensor and new duplo train sounds

This commit is contained in:
Nathan Kellenicki 2018-12-26 19:11:10 +00:00
parent d33d2047a2
commit 1150e012af
2 changed files with 3 additions and 3 deletions

View File

@ -336,7 +336,7 @@ export class LPF2Hub extends Hub {
}
case Consts.Devices.BOOST_TACHO_MOTOR:
{
const rotation = data.readInt32LE(2);
const rotation = data.readInt32LE(4);
/**
* Emits when a rotation sensor is activated.
* @event LPF2Hub#rotate
@ -348,7 +348,7 @@ export class LPF2Hub extends Hub {
}
case Consts.Devices.BOOST_MOVE_HUB_MOTOR:
{
const rotation = data.readInt32LE(2);
const rotation = data.readInt32LE(4);
this.emit("rotate", port.id, rotation);
break;
}

View File

@ -1,6 +1,6 @@
{
"name": "node-poweredup",
"version": "1.1.9",
"version": "1.2.0",
"description": "A Node.js module to interface with LEGO Powered UP components.",
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
"main": "dist/index.js",