Index: PersistentAlarm.c =================================================================== diff -u -r254c4af0c7bfd773c693f7cc7a4ff794e44f1fdb -rbe8f80ce90292eecb7ddc58977a11f50e1f64cae --- PersistentAlarm.c (.../PersistentAlarm.c) (revision 254c4af0c7bfd773c693f7cc7a4ff794e44f1fdb) +++ PersistentAlarm.c (.../PersistentAlarm.c) (revision be8f80ce90292eecb7ddc58977a11f50e1f64cae) @@ -160,4 +160,19 @@ return isErrorConditionCleared; } +/*********************************************************************//** + * @brief + * The resetPersistentAlarmTimer function resets the start time for error + * condition clear start time and error start time. + * @details Inputs: none + * @details Outputs: reset condition clear start time and error occur start time + * @param alarmId Alarm id of the alarm to reset timer + * @return none + *************************************************************************/ +void resetPersistentAlarmTimer( ALARM_ID_T alarmId ) +{ + persistentAlarms[ alarmId ].errorOccurredStartTime = 0; + persistentAlarms[ alarmId ].errorClearedStartTime = 0; +} + /**@}*/