From 87a69fe52d0c7bd1309c352eeaa21f3d22cb765e Mon Sep 17 00:00:00 2001 From: Ludovic J Date: Fri, 27 May 2022 17:31:44 +0200 Subject: Fix assertion failure in TimerController 0 is not valid for xTimerPeriodInTicks, changing it to 1 to pass the assertion 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) { -- cgit v0.10.2