Commit 283e9ba7 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Assert queue empty before asking anything

parent 591e46e7
......@@ -51,6 +51,8 @@ class GPIBProtocol(serial.threaded.LineReader):
RuntimeError: if no response was received to a query.
"""
with self.lock:
assert(responses.empty())
if address:
self.write_line("++addr {:d}".format(address))
self.write_line(command)
......
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