check for true

git-svn-id: http://moon:8086/svn/projects/HendiControl@244 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-04-15 21:02:17 +00:00
parent 941bdbe6fe
commit d6dcb8ab04
+2 -2
View File
@@ -12,8 +12,8 @@ class Plant(APlant):
self.P = 0
self.isOn = False
def activate(self, enable):
if enable:
def activate(self, enable=True):
if enable == True:
self.heater.remoteEnable(enable)
self.heater.setSwitch(enable)
else: