Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r11b0015549d4371fa2ad4314c17567712a36a564 -r88868fb5e8f2fcc82f50a952be700863f3cbe19c --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 11b0015549d4371fa2ad4314c17567712a36a564) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 88868fb5e8f2fcc82f50a952be700863f3cbe19c) @@ -19,7 +19,8 @@ #include "can.h" #include "etpwm.h" - + +#include "Battery.h" #include "BloodFlow.h" #include "FPGA.h" #include "InternalADC.h" @@ -1248,7 +1249,7 @@ BOOL const isRunningMCCurrentBad = ( ( BLOOD_PUMP_OFF_STATE != bloodPumpState ) && ( bpCurr > BP_MAX_CURR_WHEN_RUNNING_MA ) ? TRUE : FALSE ); if ( ( TRUE == isPersistentAlarmTriggered( ALARM_ID_BLOOD_PUMP_MC_CURRENT_CHECK, isOffMCCurrentBad || isRunningMCCurrentBad ) ) && - ( FALSE == isAlarmActive( ALARM_ID_HD_AC_POWER_LOST ) ) && ( FALSE == isAlarmActive( ALARM_ID_HD_AC_POWER_LOST_IN_TREATMENT ) ) ) + ( FALSE == isACPowerLost() ) ) { #ifndef _RELEASE_ if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_MOTOR_CURRNT_CHECKS ) != SW_CONFIG_ENABLE_VALUE )