forked from M-Labs/kirdy
firmware: Load default pwr_on settings from flash
This commit is contained in:
parent
e160316bfc
commit
10873f4791
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user