Index: PersistentAlarm.c =================================================================== diff -u -r54a9bd09d6714d7faaa186959988a75ef3b83557 -ref85d012a922ae5e8a43a160d80bb71c3af4aa4f --- PersistentAlarm.c (.../PersistentAlarm.c) (revision 54a9bd09d6714d7faaa186959988a75ef3b83557) +++ PersistentAlarm.c (.../PersistentAlarm.c) (revision ef85d012a922ae5e8a43a160d80bb71c3af4aa4f) @@ -91,7 +91,7 @@ if ( alarmId < NUM_OF_ALARM_IDS ) { // Update start time when error occurs for the first time - if ( ( TRUE == isErrorOccurred ) && ( persistentAlarms[ alarmId ].errorOccurredStartTime == 0 ) ) + if ( ( TRUE == isErrorOccurred ) && ( 0 == persistentAlarms[ alarmId ].errorOccurredStartTime ) ) { persistentAlarms[ alarmId ].errorOccurredStartTime = getMSTimerCount(); }