summaryrefslogtreecommitdiff
path: root/src/components/alarm/AlarmController.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-09-27AlarmController: add const to SecondsToAlarm() functionReinhold Gschweicher1-1/+1
The function `SecondsToAlarm()` doesn't change anything in the `AlarmController` object. Mark the function `const` to show this property.
2022-06-06Switch to freertos timers (#1095)Michele Bini1-17/+11
* Use FreeRTOS timer for AlarmController * Use FreeRTOS timer for MotorController * Remove app_timer component from compilation as we now solely use FreeROTS timer * Simplify variable and text names for AlarmController and MotorController timers * Call ScheduleAlarm directly from StopAlerting, for recurring timers Co-authored-by: Riku Isokoski <riksu9000@gmail.com> Co-authored-by: NeroBurner <pyro4hell@gmail.com>
2022-06-05Apply clang-format to all C++ filesFinlay Davidson1-2/+1
2022-03-29AlarmController: allow loss of precision for alarmTime castReinhold Gschweicher1-1/+2
Allow a loss of precision if the system clock has a lower resolution than nanoseconds. This is the case for web assembly.
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher1-1/+1
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
2021-09-16Fixes per Riksu9000's feedbackMark Russell1-3/+3
2021-09-13License header fix, add missing bracesMark Russell1-2/+7
2021-09-13Fixes based on code reviews (formatting, UI code)Mark Russell1-29/+20
2021-09-10Created basic alarm appMark Russell1-0/+118