Bumped to 1.2.0 - fixed rotation sensor and new duplo train sounds
This commit is contained in:
parent
d33d2047a2
commit
1150e012af
@ -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;
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user