ld: save pwr_limit into settings
This commit is contained in:
parent
4288d465c9
commit
489333c43d
|
@ -182,6 +182,7 @@ impl LdDrive{
|
||||||
LdPwrExcProtector::set_trigger_threshold_v(self.settings.pd_responsitivity
|
LdPwrExcProtector::set_trigger_threshold_v(self.settings.pd_responsitivity
|
||||||
.get_ld_i_from_ld_pwr(pwr_limit) / Settings::PD_MON_TRANSCONDUCTANCE
|
.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){
|
pub fn set_pd_i_limit(&mut self, i: ElectricCurrent){
|
||||||
|
|
Loading…
Reference in New Issue