Index: firmware/App/Services/AlarmMgmt.c =================================================================== diff -u -r2dd1b02e90c90fcd94bf9b21245282205a963654 -r4dda5ae6127e3580137ebf70caf3560e3b268892 --- firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision 2dd1b02e90c90fcd94bf9b21245282205a963654) +++ firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision 4dda5ae6127e3580137ebf70caf3560e3b268892) @@ -680,6 +680,31 @@ /*********************************************************************//** * @brief + * The isACPowerLost function determines whether A/C power loss has been + * detected. + * @details Inputs: none + * @details Outputs: none + * @return TRUE if A/C power loss condition is in effect, FALSE if not + *************************************************************************/ +BOOL isACPowerLost( void ) +{ + BOOL result = TRUE; + + if ( ( FALSE == isAlarmConditionDetected( ALARM_ID_HD_AC_POWER_LOST ) ) && + ( FALSE == isAlarmConditionDetected( ALARM_ID_HD_AC_POWER_LOST_IN_TREATMENT ) ) ) + { + result = FALSE; + } + else + { + alarmsBlockedTimer = ALARM_BLOCKED_COUNT_AFTER_AC_RETURN; + } + + return result; +} + +/*********************************************************************//** + * @brief * The isBloodRecircBlocked function determines whether any currently * active alarm is blocking blood re-circulation. * @details Inputs: alarmStatus