ld: apply pwr limit setting to analog watchdog
- This fixes a bug which power limit is not applied to pd_mon at startup
This commit is contained in:
parent
af95de0f16
commit
4cd328d98c
|
@ -255,6 +255,9 @@ impl LdDrive {
|
||||||
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;
|
self.settings.default_pwr_on = settings.default_pwr_on;
|
||||||
|
|
||||||
|
self.set_ld_power_limit(settings.ld_pwr_limit);
|
||||||
|
|
||||||
if self.settings.ld_terms_short {
|
if self.settings.ld_terms_short {
|
||||||
self.ld_short();
|
self.ld_short();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue