ld: save pwr_limit into settings

This commit is contained in:
linuswck 2024-04-03 10:47:01 +08:00
parent 4288d465c9
commit 489333c43d
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ impl LdDrive{
LdPwrExcProtector::set_trigger_threshold_v(self.settings.pd_responsitivity
.get_ld_i_from_ld_pwr(pwr_limit) / Settings::PD_MON_TRANSCONDUCTANCE
);
self.settings.ld_pwr_limit = pwr_limit;
}
pub fn set_pd_i_limit(&mut self, i: ElectricCurrent){