Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r85a680de4306aa033b1dc1f386fa5fa0a25cf73b -r7e9a0ee7e8f64336235f11a84726871777747f8c --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 85a680de4306aa033b1dc1f386fa5fa0a25cf73b) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 7e9a0ee7e8f64336235f11a84726871777747f8c) @@ -80,7 +80,6 @@ #define DIP_MAX_CURR_WHEN_STOPPED_MA 150.0 ///< Motor controller current should not exceed this when pump should be stopped. -#define DIP_MIN_CURR_WHEN_RUNNING_MA 150.0 ///< Motor controller current should always exceed this when pump should be running. #define DIP_MAX_CURR_WHEN_RUNNING_MA 2000.0 ///< Motor controller current should not exceed this when pump should be running. #define DIP_MAX_CURR_ERROR_DURATION_MS 2000 ///< Motor controller current errors persisting beyond this duration will trigger an alarm. @@ -1172,7 +1171,7 @@ else { dipCurr = fabs( getMeasuredDialInPumpMCCurrent() ); - if ( ( dipCurr < DIP_MIN_CURR_WHEN_RUNNING_MA ) || ( dipCurr > DIP_MAX_CURR_WHEN_RUNNING_MA ) ) + if ( dipCurr > DIP_MAX_CURR_WHEN_RUNNING_MA ) { dipCurrErrorDurationCtr += TASK_PRIORITY_INTERVAL; if ( dipCurrErrorDurationCtr > DIP_MAX_CURR_ERROR_DURATION_MS ) @@ -1232,6 +1231,7 @@ #ifndef SKIP_CALIBRATION_TESTS // Retrieve dialysate flow sensor calibration data if ( ( TRUE == getCalibrationData( &cal ) ) && ( DFM_SENSOR_PARAM_CORRUPT_STATUS != getFPGADialysateFlowMeterStatus() ) ) +#endif { dialInFlowCalGain = cal.dialysateFlowGain; dialInFlowCalOffset = cal.dialysateFlowOffset_mL_min;