Skip to content

Commit d3c5e70

Browse files
authored
Merge pull request #44 from PontusO/revert-41-main
Revert "Read larger chunks to avoid loosing data."
2 parents 20b995c + 4a00ce6 commit d3c5e70

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
@@ -541,7 +541,7 @@ def at_response(self, at_cmd: str, timeout: int = 5, retries: int = 3) -> bytes:
541541
response = b""
542542
while (time.monotonic() - stamp) < timeout:
543543
if self._uart.in_waiting:
544-
response += self._uart.read(self._uart.in_waiting)
544+
response += self._uart.read(1)
545545
self.hw_flow(False)
546546
if response[-4:] == b"OK\r\n":
547547
break

0 commit comments

Comments
 (0)