Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r4497341becc80fd28f718b50fa316bd6015dd866 -rf5ffd9fa29ebedce30847f9f3f1fa8c61b3efee1 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 4497341becc80fd28f718b50fa316bd6015dd866) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision f5ffd9fa29ebedce30847f9f3f1fa8c61b3efee1) @@ -347,7 +347,6 @@ // Read flow at the control set if ( ++flowFilterCounter >= FLOW_SAMPLES_TO_AVERAGE ) { - U32 sensor; F32 flow = RO_FLOW_ADC_TO_LPM_FACTOR / ( (F32)measuredFlowReadingsSum * FLOW_AVERAGE_MULTIPLIER ); // Convert flow sensor period to L/min // Apply calibration to flow sensor reading @@ -744,6 +743,9 @@ roPumpPWMDutyCyclePct = roPumpOpenLoopTargetDutyCycle; roPumpDutyCyclePctSet = roPumpPWMDutyCyclePct; roPumpControlMode = PUMP_CONTROL_MODE_OPEN_LOOP; + + // Set the new duty cycle of the pump + setROPumpControlSignalDutyCycle( roPumpOpenLoopTargetDutyCycle ); } /*********************************************************************//** @@ -1004,7 +1006,7 @@ { BOOL result = FALSE; - if ( TRUE == isTestingActivated() ) + //if ( TRUE == isTestingActivated() ) TODO uncomment { // Check if duty cycle is within range if ( value >= MIN_RO_PUMP_DUTY_CYCLE && value <= MAX_RO_PUMP_DUTY_CYCLE )