From 3aca712e1de6441352064c41703f18ff5837d547 Mon Sep 17 00:00:00 2001 From: linuswck Date: Mon, 4 Mar 2024 10:32:33 +0800 Subject: [PATCH] Fix typos --- src/net/net.rs | 2 +- src/thermostat/thermostat.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/net.rs b/src/net/net.rs index 07357cd..d0b6b22 100644 --- a/src/net/net.rs +++ b/src/net/net.rs @@ -124,7 +124,7 @@ impl ServerHandle { let mut iface = Interface::new(config, &mut &mut dma, smoltcp::time::Instant::ZERO); iface.set_hardware_addr(EthernetAddress(mac_addr).into()); debug!("MAC ADDRESS: {:02X?}", EthernetAddress(mac_addr)); - + debug!("IP: {:?}", IP_INIT); iface.update_ip_addrs(|addr| { addr.push(IP_INIT).unwrap(); }); diff --git a/src/thermostat/thermostat.rs b/src/thermostat/thermostat.rs index c09f7d6..7b761b8 100644 --- a/src/thermostat/thermostat.rs +++ b/src/thermostat/thermostat.rs @@ -206,7 +206,7 @@ impl Thermostat{ self.max1968.power_down(); self.pid_ctrl_ch0.reset_pid_state(); self.set_i(ElectricCurrent::new::(0.0)); - self.tec_settings.pwr_on = true; + self.tec_settings.pwr_on = false; } fn set_center_pt(&mut self, value: ElectricPotential){