store settings in function call, remove last uses of settings in callbacks
This commit is contained in:
@@ -48,7 +48,6 @@ static void save(save_load_state_t *state) {
|
||||
|
||||
static void load(save_load_state_t *state, movement_settings_t *settings) {
|
||||
watch_store_backup_data(state->slot[state->index].b0, 0);
|
||||
settings->reg = state->slot[state->index].b0;
|
||||
watch_store_backup_data(state->slot[state->index].b1, 1);
|
||||
watch_store_backup_data(state->slot[state->index].b2, 2);
|
||||
watch_store_backup_data(state->slot[state->index].b3, 3);
|
||||
|
||||
@@ -267,5 +267,5 @@ void set_time_hackwatch_face_resign(movement_settings_t *settings, void *context
|
||||
(void) settings;
|
||||
(void) context;
|
||||
watch_set_led_off();
|
||||
watch_store_backup_data(settings->reg, 0);
|
||||
movement_store_settings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user