GetPumpStatus isRPMs changed to bool to be consistent with SetPumpStatus
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user