File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ void TimerController::StartTimer(uint32_t duration) {
2727 app_timer_start (timerAppTimer, APP_TIMER_TICKS (duration), this );
2828 // dont ask why this random scaling factor is here. i got a difference between the time set and the time displayed and it works out to
2929 // be exactly this linear factor
30- // you might wonder why im not simply using app_timer_cnt_get() here. I am too. It is in app_timer.h, but the compiler says it doesnt exist
30+ // you might be wondering why im not simply using app_timer_cnt_get() here. I am too. It is in app_timer.h, but the compiler says it
31+ // doesnt exist
3132 endTime = ((static_cast <float >(xTaskGetTickCount ()) / static_cast <float >(configTICK_RATE_HZ)) * 1000 + APP_TIMER_TICKS (duration)) -
3233 APP_TIMER_TICKS (duration) * 0.024 ;
3334 timerRunning = true ;
You can’t perform that action at this time.
0 commit comments