From b94c0ba65fa012e8f78a2b3c88878570679784f6 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Thu, 25 Nov 2021 10:38:17 -0500 Subject: movement: store settings in BKUP to persist across resets --- movement/movement.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'movement/movement.c') 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) { -- cgit v1.2.3