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 {