Skip to content

Commit 5f4b840

Browse files
authored
Merge pull request #41 from PontusO/main
Read larger chunks to avoid loosing data.
2 parents bd5b30f + f267f01 commit 5f4b840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_espatcontrol/adafruit_espatcontrol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def at_response(self, at_cmd, timeout=5, retries=3):
523523
response = b""
524524
while (time.monotonic() - stamp) < timeout:
525525
if self._uart.in_waiting:
526-
response += self._uart.read(1)
526+
response += self._uart.read(self._uart.in_waiting)
527527
self.hw_flow(False)
528528
if response[-4:] == b"OK\r\n":
529529
break

0 commit comments

Comments
 (0)