Commit 64a06d70 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Work around serial access not really working

parent 0df6c264
......@@ -59,7 +59,8 @@ class GPIBProtocol(serial.threaded.LineReader):
RuntimeError: if no response was received to a query.
"""
with self._lock:
assert(self.responses.empty())
while not self.responses.empty():
print("Ignoring unexpected input from serial:", self.responses.get(timeout=0))
if address:
self.write_line("++addr {:d}".format(address))
......
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