Fix assertion failure in TimerController

0 is not valid for xTimerPeriodInTicks, changing it to 1 to pass the assertion
This commit is contained in:
Ludovic J 2022-05-27 17:31:44 +02:00 committed by Riku Isokoski
parent 0fabba1c9a
commit 87a69fe52d

View file

@ -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) {