diff --git a/adafruit_espatcontrol/adafruit_espatcontrol.py b/adafruit_espatcontrol/adafruit_espatcontrol.py index 768d0f9..309663f 100644 --- a/adafruit_espatcontrol/adafruit_espatcontrol.py +++ b/adafruit_espatcontrol/adafruit_espatcontrol.py @@ -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