Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r85a680de4306aa033b1dc1f386fa5fa0a25cf73b -r7e9a0ee7e8f64336235f11a84726871777747f8c --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 85a680de4306aa033b1dc1f386fa5fa0a25cf73b) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 7e9a0ee7e8f64336235f11a84726871777747f8c) @@ -83,7 +83,6 @@ static const U32 BP_MAX_ROTOR_SPEED_ERROR_PERSIST = ((1 * MS_PER_SECOND) / TASK_PRIORITY_INTERVAL); #define BP_MAX_CURR_WHEN_STOPPED_MA 150.0 ///< Motor controller current should not exceed this when pump should be stopped -#define BP_MIN_CURR_WHEN_RUNNING_MA 150.0 ///< Motor controller current should always exceed this when pump should be running #define BP_MAX_CURR_WHEN_RUNNING_MA 2000.0 ///< Motor controller current should not exceed this when pump should be running #define BP_MAX_CURR_ERROR_DURATION_MS 2000 ///< Motor controller current errors persisting beyond this duration will trigger an alarm @@ -1220,7 +1219,7 @@ else { bpCurr = fabs( getMeasuredBloodPumpMCCurrent() ); - if ( ( bpCurr < BP_MIN_CURR_WHEN_RUNNING_MA ) || ( bpCurr > BP_MAX_CURR_WHEN_RUNNING_MA ) ) + if ( bpCurr > BP_MAX_CURR_WHEN_RUNNING_MA ) { bpCurrErrorDurationCtr += TASK_PRIORITY_INTERVAL; if ( bpCurrErrorDurationCtr > BP_MAX_CURR_ERROR_DURATION_MS ) @@ -1280,6 +1279,7 @@ // Retrieve blood flow sensor calibration data and check for sensor connected status #ifndef SKIP_CALIBRATION_TESTS if ( ( TRUE == getCalibrationData( &cal ) ) && ( BFM_SENSOR_PARAM_CORRUPT_STATUS != getFPGABloodFlowMeterStatus() ) ) +#endif { bloodFlowCalGain = cal.bloodFlowGain; bloodFlowCalOffset = cal.bloodFlowOffset_mL_min;