mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
moon_phase_face: Make alarm long-press reset to current day.
This commit is contained in:
parent
67be6affd3
commit
fc8c1fc726
|
@ -161,6 +161,10 @@ bool moon_phase_face_loop(movement_event_t event, movement_settings_t *settings,
|
|||
state->offset += 86400;
|
||||
_update(settings, state, state->offset);
|
||||
break;
|
||||
case EVENT_ALARM_LONG_PRESS:
|
||||
state->offset = 0;
|
||||
_update(settings, state, state->offset);
|
||||
break;
|
||||
case EVENT_TIMEOUT:
|
||||
// QUESTION: Should timeout reset offset to 0?
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue