From b234db74fe3f70254860715cc4bb828a30290fb2 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sun, 17 Jul 2022 00:22:03 -0500 Subject: movement: wake programmatically from background and play alarm --- movement/movement.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'movement/movement.h') diff --git a/movement/movement.h b/movement/movement.h index a29c4469..255db057 100644 --- a/movement/movement.h +++ b/movement/movement.h @@ -257,6 +257,7 @@ typedef struct { // background task handling bool needs_background_tasks_handled; bool has_scheduled_background_task; + bool needs_wake; // low energy mode countdown int32_t le_mode_ticks; @@ -287,6 +288,8 @@ void movement_schedule_background_task(watch_date_time date_time); // movement will associate the scheduled task with the currently active face. void movement_cancel_background_task(void); +void movement_request_wake(); + void movement_play_signal(void); void movement_play_alarm(void); -- cgit v1.2.3 From b07b54868149e5b1465227e6b25b0f07dc4aad71 Mon Sep 17 00:00:00 2001 From: Jack Bond-Preston Date: Mon, 25 Jul 2022 15:17:02 +0100 Subject: movement: fix movement_request_wake() prototype This function has `void` args, currently it can throw a compiler warning --- movement/movement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'movement/movement.h') diff --git a/movement/movement.h b/movement/movement.h index 255db057..0442f607 100644 --- a/movement/movement.h +++ b/movement/movement.h @@ -288,7 +288,7 @@ void movement_schedule_background_task(watch_date_time date_time); // movement will associate the scheduled task with the currently active face. void movement_cancel_background_task(void); -void movement_request_wake(); +void movement_request_wake(void); void movement_play_signal(void); void movement_play_alarm(void); -- cgit v1.2.3