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