Commit 5757045e authored by cermak's avatar cermak
Browse files

debug messaage and fix

Change-Id: Ibc14c5aee84a180261c5234b3687add4573f4cb2
parent 7cb8613d
......@@ -42,6 +42,7 @@ class StringIO(SerialStringIO):
for i in range(100):
if self.read_availableLines():
break
self.log.debug("waiting for response")
sleep(0.05)
else:
raise CommunicationFailure(f"no response in 5s")
......@@ -150,7 +151,7 @@ class XRaySource(base.DiscreteOutput):
self._I = float(res[6])
self._targetI = float(res[7])
self._doorsclosed = {'Safe': True, 'Unsafe': False}.get(res[8])
self._status = res[8]
self._status = res[9]
if self._targetI != self.targetcurrent:
return FAULT, f'Wrong target current {self._targetI} != {self.targetcurrent}'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment