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:
2023-05-19 14:01:40 +01:00
parent 17704a5607
commit 9c9f027bb8
4 changed files with 108 additions and 33 deletions

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()