1
0
forked from M-Labs/kirdy

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

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 {