Commits (1)
......@@ -664,8 +664,10 @@ class MOGDriver:
if not response.startswith("ERR"):
return response
elif "Reached timeout" in response and self.timeout_retry:
print(f"[mogdriver] received timeout; retrying {self.timeout_retry} time(s)...")
for _ in range(self.timeout_retry):
response = self.ask(cmd)
print(response)
if not response.startswith("ERR"):
return response
raise RuntimeError(response)
......