summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic J <unifai@protonmail.com>2022-05-27 15:31:44 (GMT)
committerRiku Isokoski <riksu9000@gmail.com>2022-05-27 19:14:28 (GMT)
commit87a69fe52d0c7bd1309c352eeaa21f3d22cb765e (patch)
tree82e0b770d79f53127f600be4680bcb2227b870f7
parent0fabba1c9aa9d054c3cb846c31a58a179bb1d584 (diff)
Fix assertion failure in TimerController
0 is not valid for xTimerPeriodInTicks, changing it to 1 to pass the assertion
-rw-r--r--src/components/timer/TimerController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/timer/TimerController.cpp b/src/components/timer/TimerController.cpp
index 92f4e69..ea94521 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) {