diff options
author | Ludovic J <unifai@protonmail.com> | 2022-05-27 17:31:44 +0200 |
---|---|---|
committer | Riku Isokoski <riksu9000@gmail.com> | 2022-05-27 22:14:28 +0300 |
commit | 87a69fe52d0c7bd1309c352eeaa21f3d22cb765e (patch) | |
tree | 82e0b770d79f53127f600be4680bcb2227b870f7 /src/components/timer/TimerController.cpp | |
parent | 0fabba1c9aa9d054c3cb846c31a58a179bb1d584 (diff) |
Fix assertion failure in TimerController
0 is not valid for xTimerPeriodInTicks, changing it to 1 to pass the assertion
Diffstat (limited to 'src/components/timer/TimerController.cpp')
-rw-r--r-- | src/components/timer/TimerController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/timer/TimerController.cpp b/src/components/timer/TimerController.cpp index 92f4e69f..ea945213 100644 --- a/src/components/timer/TimerController.cpp +++ b/src/components/timer/TimerController.cpp @@ -10,7 +10,7 @@ void TimerCallback(TimerHandle_t xTimer) { void TimerController::Init(Pinetime::System::SystemTask* systemTask) { this->systemTask = systemTask; - timer = xTimerCreate("Timer", 0, pdFALSE, this, TimerCallback); + timer = xTimerCreate("Timer", 1, pdFALSE, this, TimerCallback); } void TimerController::StartTimer(uint32_t duration) { |