diff options
author | Wesley Ellis <tahnok@gmail.com> | 2022-01-01 14:13:04 -0500 |
---|---|---|
committer | Wesley Ellis <tahnok@gmail.com> | 2022-01-01 14:13:04 -0500 |
commit | 37ff7b9c266ede90a7fb4ed46b91fc502d311144 (patch) | |
tree | fbdb4e34bcc98e166ee2e10bc3b4bcd7ff67abe4 /movement/movement.h | |
parent | 311cfdb5f45cab25053d7a188a2eb30e2c5e781b (diff) | |
download | Sensor-Watch-37ff7b9c266ede90a7fb4ed46b91fc502d311144.tar.gz Sensor-Watch-37ff7b9c266ede90a7fb4ed46b91fc502d311144.tar.bz2 Sensor-Watch-37ff7b9c266ede90a7fb4ed46b91fc502d311144.zip |
Add movement_cancel_background_task
Provide a way for a scheduled background task to be cancelled
Diffstat (limited to 'movement/movement.h')
-rw-r--r-- | movement/movement.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |