diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-17 13:47:47 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-17 13:47:47 (GMT) |
| commit | 9f062635af3548425102b976e26ebbdfa998d670 (patch) | |
| tree | 6f96c7c9a56308c314c187d3639b1054255e06d8 /src/components/timer | |
| parent | ee9dc8f79eaada3ef5ffdcb4bab9bfe8c2219d0b (diff) | |
| parent | aca605d4fb4040cc80c1acf101023aa86e7694ba (diff) | |
Merge branch 'alarm-reliability-and-switch-to-freertos-timers' into edge
# Conflicts:
# src/components/alarm/AlarmController.cpp
# src/components/datetime/DateTimeController.cpp
# src/components/motor/MotorController.cpp
# src/components/timer/TimerController.cpp
# src/components/timer/TimerController.h
# src/systemtask/Messages.h
# src/systemtask/SystemTask.cpp
Diffstat (limited to 'src/components/timer')
| -rw-r--r-- | src/components/timer/TimerController.cpp | 3 | ||||
| -rw-r--r-- | src/components/timer/TimerController.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/components/timer/TimerController.cpp b/src/components/timer/TimerController.cpp index 9802ded..9456909 100644 --- a/src/components/timer/TimerController.cpp +++ b/src/components/timer/TimerController.cpp @@ -21,7 +21,7 @@ void TimerController::Init(System::SystemTask* systemTask) { } void TimerController::StartTimer(uint32_t duration) { - xTimerStop(timerAppTimer,0); + xTimerStop(timerAppTimer, 0); auto currentTicks = xTaskGetTickCount(); TickType_t durationTicks = APP_TIMER_TICKS(duration); xTimerChangePeriod(timerAppTimer, durationTicks, 0); @@ -60,3 +60,4 @@ void TimerController::OnTimerEnd() { systemTask->PushMessage(System::Messages::OnTimerDone); } } + diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h index cdd78ec..b1b8d3c 100644 --- a/src/components/timer/TimerController.h +++ b/src/components/timer/TimerController.h @@ -28,6 +28,7 @@ namespace Pinetime { } void OnTimerEnd(); + protected: friend class Pinetime::System::SystemTask; void Init(System::SystemTask* systemTask); |
