Add support for snoozing alarms

Also modified time_manager to pass time by value to time callbacks as
it's a fairly small struct and it will probably be more robust.
This commit is contained in:
cdo committed 2023-05-19 14:02:49 +01:00
1 parent 17704a5607
commit 9c9f027bb8
4 files changed
+108 -33

No files matched your search

+2 -2
View File
@@ -51,9 +51,9 @@ static void show_time(unsigned hour, unsigned minute)
show_digit(DISPLAY_DIGIT_4, minute % 10);
}
static void update_time(const Time *time)
static void update_time(Time now)
{
show_time(time->hour, time->minute);
show_time(now.hour, now.minute);
}
void display_init()