Index: firmware/App/Controllers/DialOutFlow.c =================================================================== diff -u -r450fd51053df274149ec091955baa33e23e1c7a7 -r42db67ae5e0568843ec1b8c4733d1279ea2d6169 --- firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision 450fd51053df274149ec091955baa33e23e1c7a7) +++ firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision 42db67ae5e0568843ec1b8c4733d1279ea2d6169) @@ -261,7 +261,7 @@ // Direction change while pump is running is not allowed if ( ( FALSE == isDialOutPumpOn ) || ( 0 == flowRate ) || ( dir == dialOutPumpDirectionSet ) ) { - F32 pwmDC = DOP_PWM_FROM_ML_PER_MIN( (F32)flowRate ); + F32 pwmDC = ( 0 == flowRate ? DOP_PWM_ZERO_OFFSET : DOP_PWM_FROM_ML_PER_MIN( (F32)flowRate ) ); // Don't interrupt pump control unless rate or mode is changing if ( ( fabs( pwmDC - dialOutPumpPWMDutyCyclePct ) > NEARLY_ZERO ) || ( mode != dialOutPumpControlMode ) ) @@ -1334,7 +1334,14 @@ } if ( ctrlMode < NUM_OF_PUMP_CONTROL_MODES ) { - result = setDialOutPumpTargetRate( abs(value), dir, (PUMP_CONTROL_MODE_T)ctrlMode ); + if ( 0 == value ) + { + signalDialOutPumpHardStop(); + } + else + { + result = setDialOutPumpTargetRate( abs(value), dir, (PUMP_CONTROL_MODE_T)ctrlMode ); + } } }