From 8f38acd0f2bc4835a5b4d9c30854311535e23c56 Mon Sep 17 00:00:00 2001 From: linuswck Date: Mon, 22 Jul 2024 10:52:23 +0800 Subject: [PATCH] thermostat: do not rst tec_i_out to 0 at pwr down --- src/thermostat/thermostat.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/thermostat/thermostat.rs b/src/thermostat/thermostat.rs index 1393fd8..58cd346 100644 --- a/src/thermostat/thermostat.rs +++ b/src/thermostat/thermostat.rs @@ -219,7 +219,6 @@ impl Thermostat { pub fn power_down(&mut self) { self.max1968.power_down(); self.pid_ctrl_ch0.reset_pid_state(); - self.set_i(ElectricCurrent::new::(0.0)); } fn set_center_pt(&mut self, value: ElectricPotential) {