summaryrefslogtreecommitdiff
path: root/src/components/timer/TimerController.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-05-10 18:20:34 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-05-10 19:16:02 (GMT)
commit2f0858fa0561d09d59ab4435c0b4342794738a77 (patch)
tree79ede703faa72c0b2ff95a21fb0a6702b4e1a70e /src/components/timer/TimerController.cpp
parent3744e655fa94cc2efece15c3196cf8b398354ca2 (diff)
Fix for stopping timer alert and simplifying code.
Diffstat (limited to 'src/components/timer/TimerController.cpp')
-rw-r--r--src/components/timer/TimerController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/timer/TimerController.cpp b/src/components/timer/TimerController.cpp
index 9456909..5b0d828 100644
--- a/src/components/timer/TimerController.cpp
+++ b/src/components/timer/TimerController.cpp
@@ -45,6 +45,9 @@ int32_t TimerController::GetSecondsRemaining() {
void TimerController::StopTimer() {
xTimerStop(timerAppTimer, 0);
timerRunning = false;
+ if (overtime) {
+ StopAlerting();
+ }
overtime = false;
}