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:
linuswck 2024-07-19 10:59:05 +08:00
parent af95de0f16
commit 4cd328d98c
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ impl LdDrive {
self.settings.pd_mon_params = settings.pd_mon_params;
self.settings.ld_pwr_limit = settings.ld_pwr_limit;
self.settings.default_pwr_on = settings.default_pwr_on;
self.set_ld_power_limit(settings.ld_pwr_limit);
if self.settings.ld_terms_short {
self.ld_short();
} else {