Skip to content

Commit 67d6c2e

Browse files
committed
built timer app
1 parent d290592 commit 67d6c2e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/timer/TimerController.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)