Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r4af90003e7bd9ab26d4d971d0c6916fd0ecdae27 -r2b4ec004d681ac56c9d9ed7a6d7acc230b91cbaf --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 4af90003e7bd9ab26d4d971d0c6916fd0ecdae27) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 2b4ec004d681ac56c9d9ed7a6d7acc230b91cbaf) @@ -262,7 +262,7 @@ // Direction change while pump is running is not allowed if ( ( FALSE == isDialInPumpOn ) || ( 0 == flowRate ) || ( dir == dialInPumpDirectionSet ) ) { - U32 dirFlowRate = ( dir == MOTOR_DIR_FORWARD ? (S32)flowRate : (S32)flowRate * -1 ); + S32 dirFlowRate = ( dir == MOTOR_DIR_FORWARD ? (S32)flowRate : (S32)flowRate * -1 ); // Don't interrupt pump control unless rate or mode is changing if ( ( dirFlowRate != targetDialInFlowRate ) || ( mode != dialInPumpControlMode ) ) @@ -573,7 +573,7 @@ // Have we essentially reached zero speed if ( dialInPumpPWMDutyCyclePctSet < (MAX_DIAL_IN_PUMP_PWM_STEP_DN_CHANGE + DIP_PWM_ZERO_OFFSET) ) { - stopDialInPump(); + signalDialInPumpHardStop(); result = DIAL_IN_PUMP_OFF_STATE; } // Have we reached end of ramp down?