Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7ccdf8be
Commit
7ccdf8be
authored
Jul 29, 2015
by
Damien George
Browse files
tools/pyboard.py: Fix read timeout calc to work with shorter sleep.
parent
f5d04750
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pyboard.py
View file @
7ccdf8be
...
...
@@ -133,11 +133,10 @@ class Pyboard:
data
=
data
+
new_data
if
data_consumer
:
data_consumer
(
new_data
)
#time.sleep(0.01)
timeout_count
=
0
else
:
timeout_count
+=
1
if
timeout
is
not
None
and
timeout_count
>=
10
*
timeout
:
if
timeout
is
not
None
and
timeout_count
>=
10
0
*
timeout
:
break
time
.
sleep
(
0.01
)
return
data
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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