Fix for remote LED working

This commit is contained in:
Nathan Kunicki 2018-07-25 14:02:21 +01:00
parent 8684f1d5cc
commit af3109ac2c

View File

@ -97,7 +97,11 @@ export class LPF2Hub extends Hub {
if (color === false) {
color = 0;
}
if (this.type === Consts.Hubs.POWERED_UP_REMOTE) {
data = Buffer.from([0x08, 0x00, 0x81, 0x34, 0x11, 0x51, 0x00, color]);
} else {
data = Buffer.from([0x08, 0x00, 0x81, 0x32, 0x11, 0x51, 0x00, color]);
}
this._writeMessage(Consts.BLECharacteristics.BOOST_ALL, data);
return resolve();
});