From 4132bfacd36a38a3b8b6f410f16cbdc2744372fb Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 2 Feb 2024 17:22:57 +0800 Subject: [PATCH] boot: Set thermostat & LD init output current to 0 --- src/device/boot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/boot.rs b/src/device/boot.rs index 26fcd59..91af272 100644 --- a/src/device/boot.rs +++ b/src/device/boot.rs @@ -67,7 +67,7 @@ pub fn bootup( thermostat.setup(); thermostat.power_up(); thermostat.calibrate_dac_value(); - thermostat.set_i(ElectricCurrent::new::(1.0)); + thermostat.set_i(ElectricCurrent::new::(0.0)); debug!("Setting up Laser Driver"); let current_source = LdCtrl::new(current_source_phy); @@ -75,7 +75,7 @@ pub fn bootup( laser.setup(); laser.ld_open(); laser.set_ld_drive_current_limit(ElectricCurrent::new::(0.2)); - laser.ld_set_i(ElectricCurrent::new::(0.15)); + laser.ld_set_i(ElectricCurrent::new::(0.0)); laser.set_pd_i_limit(ElectricCurrent::new::(2.5)); laser.set_pd_mon_calibrated_vdda(thermostat.get_calibrated_vdda()); laser.power_up();