From 8c02b4857d3fe54c141cdc293e1ca88a31302b6a Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 30 Mar 2018 20:13:59 -0500 Subject: [PATCH] degC is now true/false instead of 0/1 Seek ahead instead of using padding variables --- messages/SLControllerConfigMessage.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/messages/SLControllerConfigMessage.js b/messages/SLControllerConfigMessage.js index 82419ba..02e1fd2 100755 --- a/messages/SLControllerConfigMessage.js +++ b/messages/SLControllerConfigMessage.js @@ -26,7 +26,7 @@ exports.SLControllerConfigMessage = class SLControllerConfigMessage extends SLMe this.maxSetPoint[i] = this.readUInt8(); } - this.degC = this.readUInt8(); + this.degC = this.readUInt8() !== 0; this.controllerType = this.readUInt8(); this.hwType = this.readUInt8(); this.controllerData = this.readUInt8(); @@ -47,10 +47,9 @@ exports.SLControllerConfigMessage = class SLControllerConfigMessage extends SLMe colorPos: this.readUInt8(), colorStagger: this.readUInt8(), deviceId: this.readUInt8(), - dfaultRt: this.readUInt16LE(), - pad1: this.readUInt8(), - pad2: this.readUInt8() + dfaultRt: this.readUInt16LE() } + this._readOffset += 2; } let colorCount = this.readInt32LE();