From aaff3914cd32303073890433cc5fd2d952112b10 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 28 Apr 2019 14:39:54 +0000 Subject: [PATCH] - deactivate plant and stirrer on thread start git-svn-id: http://moon:8086/svn/projects/HendiControl@281 fda53097-d464-4ada-af97-ba876c37ca34 --- Control/brewpi/controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Control/brewpi/controller.py b/Control/brewpi/controller.py index caf7969..b5a3db4 100644 --- a/Control/brewpi/controller.py +++ b/Control/brewpi/controller.py @@ -63,9 +63,9 @@ class Controller(TimerListener): self.power_hold_offset = 200 self.power_heat_offset = 1500 self.queue = queue.Queue() - self.thread = threading.Thread(target=self.main) self.rast_done = False self.receipe_done = False + self.thread = threading.Thread(target=self.main) self.thread.start() def command(self, cmd): @@ -162,6 +162,9 @@ class Controller(TimerListener): self.sensorTimer.start(self.sensor_dt/self.sim_warp_factor) self.plantTimer.start(1/self.sim_warp_factor) + self.stirrer.deactivate() + self.plant.activate(False) + run = True while(run and not self.receipe_done): self.timerMgr.process()