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.c | |
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.c')
-rw-r--r-- | movement/movement.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/movement/movement.c b/movement/movement.c index 1a31175a..128011b9 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -114,10 +114,12 @@ void app_init() { } void app_wake_from_backup() { - // This app does not support BACKUP mode. + movement_state.settings.reg = watch_get_backup_data(0); } void app_setup() { + watch_store_backup_data(movement_state.settings.reg, 0); + static bool is_first_launch = true; if (is_first_launch) { |