From d746506941b6992d10842c1a96e17ae143cca6b6 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 19 Apr 2020 17:38:00 +0000 Subject: [PATCH] - fixed constructor params git-svn-id: http://moon:8086/svn/projects/HendiControl@366 fda53097-d464-4ada-af97-ba876c37ca34 --- Control/brewpi/plant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Control/brewpi/plant.py b/Control/brewpi/plant.py index c7d7b16..8f832fc 100644 --- a/Control/brewpi/plant.py +++ b/Control/brewpi/plant.py @@ -19,6 +19,8 @@ class Plant(APlant): if enable == True: self.heater.remoteEnable(enable) self.heater.setSwitch(enable) + if not self.heater.isRemoteEnable(): + raise Exception ("Heater: Cannot enable remote mode!") else: self.heater.setSwitch(enable) self.heater.remoteEnable(enable)