From 37ff7b9c266ede90a7fb4ed46b91fc502d311144 Mon Sep 17 00:00:00 2001 From: Wesley Ellis Date: Sat, 1 Jan 2022 14:13:04 -0500 Subject: Add movement_cancel_background_task Provide a way for a scheduled background task to be cancelled --- movement/movement.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'movement/movement.h') diff --git a/movement/movement.h b/movement/movement.h index edb1fabc..3706b8db 100644 --- a/movement/movement.h +++ b/movement/movement.h @@ -258,6 +258,10 @@ void movement_request_tick_frequency(uint8_t freq); // movement will associate the scheduled task with the currently active face. void movement_schedule_background_task(watch_date_time date_time); +// note: watch faces can only cancel their background task when in the foreground, since +// movement will associate the scheduled task with the currently active face. +void movement_cancel_background_task(void); + void movement_play_signal(void); void movement_play_alarm(void); -- cgit v1.2.3