aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/alarm/AlarmController.h
diff options
context:
space:
mode:
authorReinhold Gschweicher <pyro4hell@gmail.com>2022-09-26 21:39:41 +0200
committerJF <JF002@users.noreply.github.com>2022-09-27 20:32:13 +0200
commitf699261ca326c76b72a864cb9576cf4c69bd5474 (patch)
tree9f75f02d7b9ee4e8a854fd2ecbf78171bab2736b /src/components/alarm/AlarmController.h
parent30e8353a4f3850201c84427b906618832ef7a766 (diff)
AlarmController: add const to SecondsToAlarm() function
The function `SecondsToAlarm()` doesn't change anything in the `AlarmController` object. Mark the function `const` to show this property.
Diffstat (limited to 'src/components/alarm/AlarmController.h')
-rw-r--r--src/components/alarm/AlarmController.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/alarm/AlarmController.h b/src/components/alarm/AlarmController.h
index d630a128..91f60f5a 100644
--- a/src/components/alarm/AlarmController.h
+++ b/src/components/alarm/AlarmController.h
@@ -36,7 +36,7 @@ namespace Pinetime {
void ScheduleAlarm();
void DisableAlarm();
void SetOffAlarmNow();
- uint32_t SecondsToAlarm();
+ uint32_t SecondsToAlarm() const;
void StopAlerting();
enum class AlarmState { Not_Set, Set, Alerting };
enum class RecurType { None, Daily, Weekdays };