firmware: Load default pwr_on settings from flash

This commit is contained in:
linuswck 2024-04-09 11:42:04 +08:00
parent e160316bfc
commit 10873f4791
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ impl LdDrive{
self.settings.ld_drive_current_limit = settings.ld_drive_current_limit.value; self.settings.ld_drive_current_limit = settings.ld_drive_current_limit.value;
self.settings.pd_mon_params = settings.pd_mon_params; self.settings.pd_mon_params = settings.pd_mon_params;
self.settings.ld_pwr_limit = settings.ld_pwr_limit; self.settings.ld_pwr_limit = settings.ld_pwr_limit;
self.settings.default_pwr_on = settings.default_pwr_on;
if self.settings.ld_terms_short { if self.settings.ld_terms_short {
self.ld_short(); self.ld_short();
} else { } else {

View File

@ -537,7 +537,7 @@ impl Thermostat{
if !settings.pid_engaged { if !settings.pid_engaged {
self.set_i(settings.tec_settings.i_set.value); self.set_i(settings.tec_settings.i_set.value);
} }
self.set_default_pwr_on(settings.default_pwr_on);
if settings.default_pwr_on { if settings.default_pwr_on {
self.power_up(); self.power_up();
} else { } else {