summaryrefslogtreecommitdiff
path: root/src/components/alarm/AlarmController.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-16 05:19:28 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-16 05:20:22 (GMT)
commit1d48a97f09104e6b26159622d1631c781498e6f3 (patch)
treed3ce694b3e79549d7c2bccb975b308273410f536 /src/components/alarm/AlarmController.cpp
parentc92fdb2e8cec3c581124c5efcfb5297ac4cfdcb5 (diff)
replace pdMS_TO_TICKS with APP_TIMER_TICKS; more tweaks
Diffstat (limited to 'src/components/alarm/AlarmController.cpp')
-rw-r--r--src/components/alarm/AlarmController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/alarm/AlarmController.cpp b/src/components/alarm/AlarmController.cpp
index 33a58fe..cea679f 100644
--- a/src/components/alarm/AlarmController.cpp
+++ b/src/components/alarm/AlarmController.cpp
@@ -77,7 +77,7 @@ void AlarmController::ScheduleAlarm() {
// now can convert back to a time_point
alarmTime = std::chrono::system_clock::from_time_t(std::mktime(tmAlarmTime));
auto mSecToAlarm = std::chrono::duration_cast<std::chrono::milliseconds>(alarmTime - now).count();
- xTimerChangePeriod(alarmAppTimer, pdMS_TO_TICKS(mSecToAlarm), 0);
+ xTimerChangePeriod(alarmAppTimer, APP_TIMER_TICKS(mSecToAlarm), 0);
xTimerStart(alarmAppTimer, 0);
state = AlarmState::Set;