Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r033fc7e3272b2dcec81a2177f901360587c0b45c -r4d0c621f5994e1de8bf7d3337678f7835292ce73 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 033fc7e3272b2dcec81a2177f901360587c0b45c) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 4d0c621f5994e1de8bf7d3337678f7835292ce73) @@ -7,8 +7,8 @@ * * @file BloodFlow.c * -* @author (last) Dara Navaei -* @date (last) 26-Jul-2023 +* @author (last) Sean Nash +* @date (last) 10-Aug-2023 * * @author (original) Sean Nash * @date (original) 07-Nov-2019 @@ -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 )