- fixed hendiCtrl exceptions
This commit is contained in:
@@ -118,6 +118,8 @@ class HendiCtrl:
|
||||
def cmd(self, req):
|
||||
self.__write(req)
|
||||
rsp = self.__read()
|
||||
if len(rsp) == 0:
|
||||
raise HendiException(f"Communication error")
|
||||
if "OK" not in rsp[0]:
|
||||
raise HendiException(f"Communication error")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user