diff --git a/README.md b/README.md index 8a40c1d..8867ea6 100755 --- a/README.md +++ b/README.md @@ -624,4 +624,4 @@ Passed as an argument to the emitted `setPumpFlow` event. The passed version is * `pumpId` - id of pump to get information about, first pump is 0 * `circuitId` - index of circuit for which to change the set point (index is relative to data returned by [`SLGetPumpStatus`](#slgetpumpstatus)) * `setPoint` - the value for which to set the pump/circuit combo -* `isRPMs` - boolean, TRUE for RPMs, FALSE for GPMs +* `isRPMs` - boolean, `true` for RPMs, `false` for GPMs diff --git a/messages/SLGetPumpStatus.js b/messages/SLGetPumpStatus.js index 315770d..a3aef3f 100644 --- a/messages/SLGetPumpStatus.js +++ b/messages/SLGetPumpStatus.js @@ -40,7 +40,7 @@ exports.SLGetPumpStatus = class SLGetPumpStatus extends SLMessage { this.pumpSetting[i] = {}; this.pumpSetting[i].circuitId = this.readUInt32LE(); this.pumpSetting[i].pumpSetPoint = this.readUInt32LE(); - this.pumpSetting[i].isRPMs = this.readUInt32LE(); // 1 for RPMs; 0 for GPMs + this.pumpSetting[i].isRPMs = this.readUInt32LE() !== 0; // 1 for RPMs; 0 for GPMs } }