ld: cfg hardware when pd_mon params changes
This commit is contained in:
parent
73796a4728
commit
49cff8e2a3
|
@ -182,10 +182,12 @@ impl LdDrive {
|
||||||
|
|
||||||
pub fn set_pd_responsitivity(&mut self, responsitivity: pd_mon_params::ResponsitivityUnit) {
|
pub fn set_pd_responsitivity(&mut self, responsitivity: pd_mon_params::ResponsitivityUnit) {
|
||||||
self.settings.pd_mon_params.set(responsitivity);
|
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) {
|
pub fn set_pd_dark_current(&mut self, i_dark: ElectricCurrent) {
|
||||||
self.settings.pd_mon_params.set_i_dark(i_dark);
|
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) {
|
pub fn set_ld_power_limit(&mut self, pwr_limit: Power) {
|
||||||
|
|
Loading…
Reference in New Issue