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.P = 0
|
||||||
self.isOn = False
|
self.isOn = False
|
||||||
|
|
||||||
def activate(self, enable):
|
def activate(self, enable=True):
|
||||||
if enable:
|
if enable == True:
|
||||||
self.heater.remoteEnable(enable)
|
self.heater.remoteEnable(enable)
|
||||||
self.heater.setSwitch(enable)
|
self.heater.setSwitch(enable)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user