Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -rc3ad9ff5401aed42da66a2f47c7d02332f9fd1b5 -re7c4a51e6057f0cc83fabc72f2df9bb5dffee391 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision c3ad9ff5401aed42da66a2f47c7d02332f9fd1b5) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision e7c4a51e6057f0cc83fabc72f2df9bb5dffee391) @@ -22,8 +22,8 @@ #include "gio.h" #include "reg_het.h" -#include "Battery.h" #include "BloodFlow.h" +#include "CPLD.h" #include "FPGA.h" #include "InternalADC.h" #include "NVDataMgmt.h" @@ -1261,7 +1261,7 @@ BOOL const isRunningMCCurrentBad = ( ( BLOOD_PUMP_OFF_STATE != bloodPumpState ) && ( bpCurr > BP_MAX_CURR_WHEN_RUNNING_MA ) ? TRUE : FALSE ); if ( ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_BLOOD_PUMP_MC_CURRENT_CHECK, isOffMCCurrentBad || isRunningMCCurrentBad ) ) && - ( FALSE == isACPowerLost() ) ) + ( getCPLDACPowerLossDetected() != TRUE ) ) { #ifndef _RELEASE_ if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_MOTOR_CURRNT_CHECKS ) != SW_CONFIG_ENABLE_VALUE )