forked from M-Labs/kirdy
ld: cfg hardware when pd_mon params changes
This commit is contained in:
parent
c241d34434
commit
7b52072617
|
@ -182,10 +182,12 @@ impl LdDrive {
|
|||
|
||||
pub fn set_pd_responsitivity(&mut self, responsitivity: pd_mon_params::ResponsitivityUnit) {
|
||||
self.settings.pd_mon_params.set(responsitivity);
|
||||
self.set_ld_power_limit(self.settings.ld_pwr_limit)
|
||||
}
|
||||
|
||||
pub fn set_pd_dark_current(&mut self, i_dark: ElectricCurrent) {
|
||||
self.settings.pd_mon_params.set_i_dark(i_dark);
|
||||
self.set_ld_power_limit(self.settings.ld_pwr_limit)
|
||||
}
|
||||
|
||||
pub fn set_ld_power_limit(&mut self, pwr_limit: Power) {
|
||||
|
|
Loading…
Reference in New Issue