- fixed hendiCtrl exceptions

This commit is contained in:
2026-06-30 17:05:43 +02:00
parent c0646fada3
commit 29dd5267a9
+2
View File
@@ -118,6 +118,8 @@ class HendiCtrl:
def cmd(self, req): def cmd(self, req):
self.__write(req) self.__write(req)
rsp = self.__read() rsp = self.__read()
if len(rsp) == 0:
raise HendiException(f"Communication error")
if "OK" not in rsp[0]: if "OK" not in rsp[0]:
raise HendiException(f"Communication error") raise HendiException(f"Communication error")