Skip to content

Commit

Permalink
Merge pull request #41 from PontusO/main
Browse files Browse the repository at this point in the history
Read larger chunks to avoid loosing data.
  • Loading branch information
tannewt authored Sep 10, 2021
2 parents bd5b30f + f267f01 commit 5f4b840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_espatcontrol/adafruit_espatcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def at_response(self, at_cmd, timeout=5, retries=3):
response = b""
while (time.monotonic() - stamp) < timeout:
if self._uart.in_waiting:
response += self._uart.read(1)
response += self._uart.read(self._uart.in_waiting)
self.hw_flow(False)
if response[-4:] == b"OK\r\n":
break
Expand Down

0 comments on commit 5f4b840

Please sign in to comment.