diff --git a/components/pid/temp_controller.py b/components/pid/temp_controller.py index f99afb8..0b34212 100644 --- a/components/pid/temp_controller.py +++ b/components/pid/temp_controller.py @@ -87,7 +87,8 @@ class TempController(APid): # Process state state_next = self.state if self.state == States.INIT: - state_next = States.IDLE + if not self.is_startup: + state_next = States.IDLE elif self.state == States.IDLE: if diff >= THRESH_IDLE_HEAT: state_next = States.HEAT diff --git a/components/pid/temp_controller_smith.py b/components/pid/temp_controller_smith.py index 954dbee..40547ee 100755 --- a/components/pid/temp_controller_smith.py +++ b/components/pid/temp_controller_smith.py @@ -112,7 +112,8 @@ class TempController(APid): # Process state state_next = self.state if self.state == States.INIT: - state_next = States.IDLE + if not self.is_startup: + state_next = States.IDLE elif self.state == States.IDLE: if diff >= THRESH_IDLE_HEAT: state_next = States.HEAT