store settings in function call, remove last uses of settings in callbacks

This commit is contained in:
joeycastillo
2024-09-29 09:57:41 -04:00
parent b3ed4df0a1
commit 3bd8f8d51f
6 changed files with 9 additions and 4 deletions

View File

@@ -399,6 +399,10 @@ void movement_set_backlight_dwell(uint8_t value) {
movement_state.settings.bit.led_duration = value;
}
void movement_store_settings(void) {
watch_store_backup_data(movement_state.settings.reg, 0);
}
bool movement_alarm_enabled(void) {
return movement_state.settings.bit.alarm_enabled;
}