diff options
Diffstat (limited to 'src/components/timer')
| -rw-r--r-- | src/components/timer/Timer.cpp | 4 | ||||
| -rw-r--r-- | src/components/timer/Timer.h | 2 |
2 files changed, 6 insertions, 0 deletions
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; +} diff --git a/src/components/timer/Timer.h b/src/components/timer/Timer.h index a99f6c4d..d43c7970 100644 --- a/src/components/timer/Timer.h +++ b/src/components/timer/Timer.h @@ -25,6 +25,8 @@ namespace Pinetime { bool IsRunning(); + void ResetExpiredTime(); + private: TimerHandle_t timer; TickType_t expiry; |
