Fix assertion failure in TimerController
0 is not valid for xTimerPeriodInTicks, changing it to 1 to pass the assertion
This commit is contained in:
parent
0fabba1c9a
commit
87a69fe52d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue