Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
HPIB
Commits
283e9ba7
Commit
283e9ba7
authored
May 13, 2018
by
Tammo Jan Dijkema
Browse files
Assert queue empty before asking anything
parent
591e46e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
hpib.py
View file @
283e9ba7
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment