diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-11-25 10:38:17 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-11-25 10:39:09 -0500 |
commit | b94c0ba65fa012e8f78a2b3c88878570679784f6 (patch) | |
tree | 531f04a80c5b6cd31cdadec01059bfa85dc6ecb4 /movement/movement.h | |
parent | 5c3967aea28dff5a2731a28862c5cae3b995f875 (diff) | |
download | Sensor-Watch-b94c0ba65fa012e8f78a2b3c88878570679784f6.tar.gz Sensor-Watch-b94c0ba65fa012e8f78a2b3c88878570679784f6.tar.bz2 Sensor-Watch-b94c0ba65fa012e8f78a2b3c88878570679784f6.zip |
movement: store settings in BKUP to persist across resets
Diffstat (limited to 'movement/movement.h')
-rw-r--r-- | movement/movement.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/movement/movement.h b/movement/movement.h index 4e791fca..0379fe7b 100644 --- a/movement/movement.h +++ b/movement/movement.h @@ -13,12 +13,12 @@ // stored in BKUP[1] and BKUP[2], respectively. // * The movement_reserved_t type is here as a placeholder, because I sense there's some other generally useful // stuff we'll want to make available to all watch faces and stash in the BKUP[3] register. -// Anyway: Eventually, if Movement supports the BACKUP sleep mode, this will allow these preferences to be stored -// before entering BACKUP mode and and restored after waking from reset. +// This allows these preferences to be stored before entering BACKUP mode and and restored after waking from reset. // movement_settings_t contains global settings that cover watch behavior, including preferences around clock and unit -// display, time zones, buzzer behavior, LED color and low energy mode timeouts. -// Eventually it will be stored in BKUP[0] when Movement enters BACKUP mode. +// display, time zones, buzzer behavior, LED color and low energy mode timeouts. These settings are stored in BKUP[0]. +// If your watch face changes one of these settings, you should store your changes in either your loop or resign +// function by calling `watch_store_backup_data(settings->reg, 0)`. Otherwise it may not persist after a reset event. typedef union { struct { bool button_should_sound : 1; // if true, pressing a button emits a sound. |