mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
Update timeout & low energy behaviour
This commit is contained in:
parent
6e26c01de0
commit
a9e6b82f00
|
@ -477,13 +477,16 @@ bool periodic_face_loop(movement_event_t event, movement_settings_t *settings, v
|
|||
_ts_ticks = 2;
|
||||
break;
|
||||
case EVENT_TIMEOUT:
|
||||
break;
|
||||
case EVENT_LOW_ENERGY_UPDATE:
|
||||
// Display title in LE mode.
|
||||
// Display title after timeout
|
||||
if (state->mode == SCREEN_TITLE) break;
|
||||
state->mode = SCREEN_TITLE;
|
||||
_display_screen(state, false);
|
||||
break;
|
||||
case EVENT_LOW_ENERGY_UPDATE:
|
||||
// Display static title and tick animation during LE
|
||||
watch_display_string("Pd Table", 0);
|
||||
watch_start_tick_animation(500);
|
||||
break;
|
||||
default:
|
||||
return movement_default_loop_handler(event, settings);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue