Index: firmware/App/Services/AlarmMgmt.c =================================================================== diff -u -rd81f239e0039bc025586f7dfc21cdd3d937c8744 -r1519b5d150fd913f596715f0eacce7d5c5e0d56c --- firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision d81f239e0039bc025586f7dfc21cdd3d937c8744) +++ firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision 1519b5d150fd913f596715f0eacce7d5c5e0d56c) @@ -670,7 +670,7 @@ /*********************************************************************//** * @brief -* The handleActiveAlarmListRequest function processed the active alarms list +* The handleActiveAlarmListRequest function processes the active alarms list * request from UI. * @details Inputs: alarmIsActive[] * @details Outputs: sent active alarms list to UI @@ -703,6 +703,41 @@ sendActiveAlarmsList( accepted, rejReason, activeAlarmList, sizeof( activeAlarmList ) ); } + +/*********************************************************************//** + * @brief +* The handleResendActiveAlarmsRequest function processes the request to re-send +* all active alarms. +* @details Inputs: alarmIsActive[] +* @details Outputs: re-send active alarms to UI +* @return none +*************************************************************************/ +void handleResendActiveAlarmsRequest( void ) +{ + U32 index; + + if ( TRUE == isAnyAlarmActive() ) + { + for ( index = 0; index < NUM_OF_ALARM_IDS; index++ ) + { + if ( TRUE == isAlarmActive( (ALARM_ID_T)index ) ) + { + ALARM_TRIGGERED_PAYLOAD_T data; + + data.alarm = index; + data.almDataType1 = BLANK_ALARM_DATA.dataType; + data.almData1 = BLANK_ALARM_DATA.data.uInt.data; + data.almDataType2 = BLANK_ALARM_DATA.dataType; + data.almData2 = BLANK_ALARM_DATA.data.uInt.data; + data.almPriority = ALARM_TABLE[ index ].alarmPriority; + data.almRank = ALARM_TABLE[ index ].alarmSubRank; + data.almClrTopOnly = ALARM_TABLE[ index ].alarmClearOnly; + + broadcastData( MSG_ID_ALARM_TRIGGERED, COMM_BUFFER_OUT_CAN_HD_ALARM, (U08*)&data, sizeof( ALARM_TRIGGERED_PAYLOAD_T ) ); + } + } + } +} /*********************************************************************//** * @brief