Skip to content

Commit

Permalink
Flush each command to the wire before waiting for a reply
Browse files Browse the repository at this point in the history
Probably only significant for very slow baud rates sending large packets of data.
  • Loading branch information
projectgus committed Jan 5, 2021
1 parent 2ff4eb9 commit 8c8793f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ def command(self, op=None, data=b"", chk=0, wait_response=True, timeout=DEFAULT_
if not wait_response:
return

self._port.flush()

# tries to get a response until that response has the
# same operation as the request or a retries limit has
# exceeded. This is needed for some esp8266s that
Expand Down

0 comments on commit 8c8793f

Please sign in to comment.