Skip to content

Commit 4a00ce6

Browse files
authored
Revert "Read larger chunks to avoid loosing data."
1 parent 413dd16 commit 4a00ce6

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(self._uart.in_waiting)
526+
response += self._uart.read(1)
527527
self.hw_flow(False)
528528
if response[-4:] == b"OK\r\n":
529529
break

0 commit comments

Comments
 (0)