check for true
git-svn-id: http://moon:8086/svn/projects/HendiControl@244 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user