Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -ra15cd6e3226f4b434e49c00bd7b9a3975eac92a0 -rbb8d23755bc6f2d3016bde413fbdd32d31fa9838 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision a15cd6e3226f4b434e49c00bd7b9a3975eac92a0) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision bb8d23755bc6f2d3016bde413fbdd32d31fa9838) @@ -230,7 +230,7 @@ // For now maximum allowed pressure is inserted into the target pressure override // if the target flow rate exceeded the max pressure, it will set the maximum pressure targetROPumpMaxPressure = maxPressure; - targetROPumpFlowRateLPM = roFlowRate; + targetROPumpFlowRateLPM = roFlowRate; roPumpControlMode = PUMP_CONTROL_MODE_CLOSED_LOOP; roPumpState = RO_PUMP_RAMP_UP_TO_TARGET_FLOW_STATE; // Get the initial guess of the duty cycle @@ -312,7 +312,7 @@ void signalROPumpHardStop( void ) { stopROPump(); - targetROPumpFlowRateLPM = 0; + targetROPumpFlowRateLPM = 0; roPumpState = RO_PUMP_OFF_STATE; roPumpPWMDutyCyclePct = 0.0; roPumpOpenLoopTargetDutyCycle = 0.0; @@ -409,9 +409,6 @@ BOOL isFlowOutOfLowerRange = ( isFlowOutOfRange && ( currentFlow < targetFlow ) ? TRUE : FALSE ); -// printf("%s- isFlowOutOfUpperRange: %d, %f, %f\n", __func__, isFlowOutOfUpperRange, currentFlow, targetFlow); // wjb - - checkPersistentAlarm( ALARM_ID_FLOW_RATE_OUT_OF_UPPER_RANGE, isFlowOutOfUpperRange, currentFlow, targetFlow ); checkPersistentAlarm( ALARM_ID_FLOW_RATE_OUT_OF_LOWER_RANGE, isFlowOutOfLowerRange, currentFlow, targetFlow ); }