- raise exception i case hendi cannot be enabled
git-svn-id: http://moon:8086/svn/projects/HendiControl@369 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -114,9 +114,9 @@ class HendiCtrl():
|
||||
self.__write(req)
|
||||
rsp = self.__read()
|
||||
if "OK" not in rsp[0]:
|
||||
raise Exception("Command not accepted ({})".format(rsp[1]))
|
||||
raise Exception(rsp[1])
|
||||
|
||||
return rsp[1]
|
||||
return rsp[1] == '1'
|
||||
|
||||
def getCapabilties(self):
|
||||
return self.caps
|
||||
|
||||
Reference in New Issue
Block a user