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
MGML.eu
entangle
Commits
7d0fce1f
Commit
7d0fce1f
authored
Sep 16, 2021
by
cermak
Browse files
Improve timing
Change-Id: I751bed184ba1ce202c7b591ed46812f3cda48f9d
parent
5757045e
Changes
1
Hide whitespace changes
Inline
Side-by-side
entangle/device/thermofisher.py
View file @
7d0fce1f
...
@@ -43,9 +43,9 @@ class StringIO(SerialStringIO):
...
@@ -43,9 +43,9 @@ class StringIO(SerialStringIO):
if
self
.
read_availableLines
():
if
self
.
read_availableLines
():
break
break
self
.
log
.
debug
(
"waiting for response"
)
self
.
log
.
debug
(
"waiting for response"
)
sleep
(
0.
05
)
sleep
(
0.
1
)
else
:
else
:
raise
CommunicationFailure
(
f
"no response in
5
s"
)
raise
CommunicationFailure
(
f
"no response in
10
s"
)
firstline
=
self
.
ReadLine
()
firstline
=
self
.
ReadLine
()
if
firstline
!=
msg
:
if
firstline
!=
msg
:
raise
CommunicationFailure
(
f
"command not repeated
{
firstline
}
!=
{
msg
}
"
)
raise
CommunicationFailure
(
f
"command not repeated
{
firstline
}
!=
{
msg
}
"
)
...
...
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