From 54f20ff4cb439f9997adb0e295caeb3130bfaecc Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 8 Jan 2024 10:02:45 -0500 Subject: timer: Add ringing and counter The timer app issues a short buzz once and then disappears. There is no trace left that the timer finished or how long ago. This change makes the motor start ringing and presents a timer counter. The timer stops buzzing after 10 seconds, and finally resets after 1 minute. --- src/components/timer/Timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/timer/Timer.cpp') diff --git a/src/components/timer/Timer.cpp b/src/components/timer/Timer.cpp index 4784cdb2..3ccffc7c 100644 --- a/src/components/timer/Timer.cpp +++ b/src/components/timer/Timer.cpp @@ -41,3 +41,7 @@ void Timer::StopTimer() { bool Timer::IsRunning() { return (xTimerIsTimerActive(timer) == pdTRUE); } + +void Timer::ResetExpiredTime() { + triggered = false; +} -- cgit v1.2.3-70-g09d2