summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-11-25 10:38:17 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-11-25 10:39:09 -0500
commitb94c0ba65fa012e8f78a2b3c88878570679784f6 (patch)
tree531f04a80c5b6cd31cdadec01059bfa85dc6ecb4 /movement/watch_faces
parent5c3967aea28dff5a2731a28862c5cae3b995f875 (diff)
downloadSensor-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/watch_faces')
-rw-r--r--movement/watch_faces/settings/preferences_face.c1
-rw-r--r--movement/watch_faces/settings/set_time_face.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/movement/watch_faces/settings/preferences_face.c b/movement/watch_faces/settings/preferences_face.c
index afe71034..03a58834 100644
--- a/movement/watch_faces/settings/preferences_face.c
+++ b/movement/watch_faces/settings/preferences_face.c
@@ -165,4 +165,5 @@ void preferences_face_resign(movement_settings_t *settings, void *context) {
(void) context;
watch_set_led_off();
movement_request_tick_frequency(1);
+ watch_store_backup_data(settings->reg, 0);
}
diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c
index fd414279..0f5af312 100644
--- a/movement/watch_faces/settings/set_time_face.c
+++ b/movement/watch_faces/settings/set_time_face.c
@@ -123,4 +123,5 @@ void set_time_face_resign(movement_settings_t *settings, void *context) {
(void) context;
watch_set_led_off();
movement_request_tick_frequency(1);
+ watch_store_backup_data(settings->reg, 0);
}