From 4cd650367d33be54f9e7c72a80f842371168cbdb Mon Sep 17 00:00:00 2001 From: linuswck Date: Mon, 5 Feb 2024 15:14:51 +0800 Subject: [PATCH] thermostat: cleanup pid_engaged fn --- src/thermostat/thermostat.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/thermostat/thermostat.rs b/src/thermostat/thermostat.rs index 540167b..7c17b4c 100644 --- a/src/thermostat/thermostat.rs +++ b/src/thermostat/thermostat.rs @@ -260,10 +260,7 @@ impl Thermostat{ } pub fn pid_engaged(&mut self) -> bool { - if self.pid_ctrl_ch0.pid_engaged { - return true; - } - false + self.pid_ctrl_ch0.pid_engaged } pub fn get_status_report(&mut self) -> StatusReport {