Index: PersistentAlarm.c =================================================================== diff -u -rcfa1142455dbcebceda091ae61e5d1f5e889fa6e -r7afc56a34c697e69faedaeffb3910b12d7d0628f --- PersistentAlarm.c (.../PersistentAlarm.c) (revision cfa1142455dbcebceda091ae61e5d1f5e889fa6e) +++ PersistentAlarm.c (.../PersistentAlarm.c) (revision 7afc56a34c697e69faedaeffb3910b12d7d0628f) @@ -1,6 +1,6 @@ /************************************************************************** * -* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2022 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. @@ -134,7 +134,7 @@ if ( alarmId < NUM_OF_ALARM_IDS ) { // Update start time when error condition clears for the first time - if ( ( FALSE == isErrorOccurred ) && ( persistentAlarms[ alarmId ].errorClearedStartTime == 0 ) ) + if ( ( FALSE == isErrorOccurred ) && ( 0 == persistentAlarms[ alarmId ].errorClearedStartTime ) ) { persistentAlarms[ alarmId ].errorClearedStartTime = getMSTimerCount(); }