Index: firmware/App/Services/AlarmMgmt.c =================================================================== diff -u -r36937bf8b99b3c5145096c327471910f00fbbfc3 -r32c1597a64fa261086ac3dec156c3d859ce30287 --- firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision 36937bf8b99b3c5145096c327471910f00fbbfc3) +++ firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision 32c1597a64fa261086ac3dec156c3d859ce30287) @@ -8,7 +8,7 @@ * @file AlarmMgmt.c * * @author (last) Michael Garthwaite -* @date (last) 17-Mar-2023 +* @date (last) 07-Apr-2023 * * @author (original) Sean Nash * @date (original) 07-Nov-2019 @@ -1241,9 +1241,11 @@ *************************************************************************/ static void clearAllRecoverableAlarms( void ) { - ALARM_ID_T a = alarmStatus.alarmTop; + ALARM_ID_T a; - for ( a = ALARM_ID_HD_SOFTWARE_FAULT; a < NUM_OF_ALARM_IDS; a++ ) + // assigning to 1 in order to prevent ALARM_ID_NO_ALARM being cleared + // which will cause a fault + for ( a = ( ( ALARM_ID_T ) 1 ) ; a < NUM_OF_ALARM_IDS; a++ ) { // Is alarm recoverable? if ( FALSE == ALARM_TABLE[ a ].alarmNoClear )