early work on background tasks, documentation

This commit is contained in:
Joey Castillo
2021-10-16 16:03:27 -04:00
parent 458ebf6987
commit 0cfb37c671
7 changed files with 102 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ bool app_loop() {
// this is a little mini-runloop.
// as long as le_mode_ticks is -1 (i.e. we are in low energy mode), we wake up here, update the screen, and go right back to sleep.
while (movement_state.le_mode_ticks == -1) {
event.event_type = EVENT_LOW_POWER_TICK;
event.event_type = EVENT_LOW_ENERGY_UPDATE;
watch_faces[movement_state.current_watch_face].loop(event, &movement_state.settings, watch_face_contexts[movement_state.current_watch_face]);
watch_enter_shallow_sleep(true);
}
@@ -201,7 +201,7 @@ void cb_alarm_btn_extwake() {
}
void cb_alarm_fired() {
event.event_type = EVENT_LOW_POWER_TICK;
event.event_type = EVENT_LOW_ENERGY_UPDATE;
}
void cb_tick() {