diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-16 11:43:58 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-16 12:12:52 (GMT) |
| commit | 2e367ec0aea857a1aee7306a2de893f96a60f2df (patch) | |
| tree | 86439281fb0ed810b83161cb36985f2a731b22bc /src/components/alarm/AlarmController.h | |
| parent | ebf3859407adba9da7acbc77b1ebabfd39d80a37 (diff) | |
| parent | c9808e29f1bbfbd1396d7b83212f6d223d52f99d (diff) | |
Merge branch 'alarm-fix-work' into edge
# Conflicts:
# src/components/timer/TimerController.cpp
Diffstat (limited to 'src/components/alarm/AlarmController.h')
| -rw-r--r-- | src/components/alarm/AlarmController.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/alarm/AlarmController.h b/src/components/alarm/AlarmController.h index fca4287..df65c63 100644 --- a/src/components/alarm/AlarmController.h +++ b/src/components/alarm/AlarmController.h @@ -17,6 +17,8 @@ */ #pragma once +#include <FreeRTOS.h> +#include <timers.h> #include <cstdint> #include "components/datetime/DateTimeController.h" @@ -37,6 +39,7 @@ namespace Pinetime { void SetOffAlarmNow(); uint32_t SecondsToAlarm(); void StopAlerting(); + void OnStopRinging(); enum class AlarmState { Not_Set, Set, Alerting }; enum class RecurType { None, Daily, Weekdays }; uint8_t Hours() const { @@ -58,6 +61,7 @@ namespace Pinetime { private: Controllers::DateTime& dateTimeController; System::SystemTask* systemTask = nullptr; + TimerHandle_t alarmAppTimer; uint8_t hours = 7; uint8_t minutes = 0; std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> alarmTime; |
