movement: store settings in BKUP to persist across resets

This commit is contained in:
Joey Castillo
2021-11-25 10:38:17 -05:00
parent 5c3967aea2
commit b94c0ba65f
4 changed files with 9 additions and 5 deletions

View File

@@ -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) {