From 0a01d299bc3088517f95efd30f4beda3c2b63072 Mon Sep 17 00:00:00 2001 From: linuswck Date: Mon, 18 Mar 2024 17:23:45 +0800 Subject: [PATCH] Fix wrong reporting of Thermostat Pwr_on status --- src/thermostat/max1968.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thermostat/max1968.rs b/src/thermostat/max1968.rs index 9cf02ef..8d05ffb 100644 --- a/src/thermostat/max1968.rs +++ b/src/thermostat/max1968.rs @@ -218,7 +218,7 @@ impl MAX1968 { } pub fn is_powered_on(&mut self) -> bool { - self.phy.shdn.is_set_low() + self.phy.shdn.is_set_high() } pub fn power_down(&mut self) {