Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r71ea7fe082e92a86b737983e3fb51e6f37072560 -r98b3a57e9c46778d2b61877e7c350a7eadceb706 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 71ea7fe082e92a86b737983e3fb51e6f37072560) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 98b3a57e9c46778d2b61877e7c350a7eadceb706) @@ -367,7 +367,7 @@ skipSet = TRUE; } } - if ( FALSE == skipSet ) + if ( skipSet != TRUE ) { targetROPumpFlowRate.data = roFlowRate; // Get the initial guess of the duty cycle @@ -421,7 +421,7 @@ skipSet = TRUE; } } - if ( FALSE == skipSet ) + if ( skipSet != TRUE ) { targetROPumpPressure.data = roPressure; // Get the initial guess of the duty cycle @@ -475,25 +475,25 @@ skipSet = TRUE; } } - if ( FALSE == skipSet ) + if ( skipSet != TRUE ) { // Set the new duty cycle of the pump - roPumpOpenLoopTargetDutyCycle.data = dutyCycle; - result = TRUE; - // stop RO Pump if duty cycle is set to zero - if ( dutyCycle == 0.0F ) - { - if ( ( targetROPumpFlowRate.data == 0 ) && ( targetROPumpPressure.data == 0.0F ) ) - { - signalROPumpHardStop(); - } - } - else - { - setFluidPumpPctToPWMDutyCycle( P12_PUMP, getTargetROPumpDutyCyclePCT() ); - } + roPumpOpenLoopTargetDutyCycle.data = dutyCycle; + result = TRUE; + // stop RO Pump if duty cycle is set to zero + if ( dutyCycle == 0.0F ) + { + if ( ( targetROPumpFlowRate.data == 0 ) && ( targetROPumpPressure.data == 0.0F ) ) + { + signalROPumpHardStop(); + } + } + else + { + setFluidPumpPctToPWMDutyCycle( P12_PUMP, getTargetROPumpDutyCyclePCT() ); + } } - } + } else { SET_ALARM_WITH_2_F32_DATA( ALARM_ID_FP_SOFTWARE_FAULT, SW_FAULT_ID_FP_INVALID_PUMP_DUTY_CYCLE_SELECTED, dutyCycle )