Skip to content

Commit

Permalink
Lowercase vf
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrouse committed Jul 20, 2024
1 parent 35e494f commit d6fab53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/comms/messages/status/PumpStateMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class PumpStateMessage {
pump.mode = msg.extractPayloadByte(1);
pump.driveState = msg.extractPayloadByte(2);
pump.watts = (msg.extractPayloadByte(3) * 256) + msg.extractPayloadByte(4);
pump.rpm = (typeof ptype !== 'undefined' && (ptype.maxSpeed > 0 || ptype.name === 'VF')) ? (msg.extractPayloadByte(5) * 256) + msg.extractPayloadByte(6) : 0;
pump.rpm = (typeof ptype !== 'undefined' && (ptype.maxSpeed > 0 || ptype.name === 'vf')) ? (msg.extractPayloadByte(5) * 256) + msg.extractPayloadByte(6) : 0;
pump.flow = (typeof ptype !== 'undefined' && ptype.maxFlow > 0) ? msg.extractPayloadByte(7) : 0;
pump.ppc = msg.extractPayloadByte(8);
pump.status = (msg.extractPayloadByte(11) * 256) + msg.extractPayloadByte(12); // 16-bits of error codes.
Expand Down

0 comments on commit d6fab53

Please sign in to comment.