diff --git a/pslab/connection/wlan.py b/pslab/connection/wlan.py index 15f2afe..79cde7a 100644 --- a/pslab/connection/wlan.py +++ b/pslab/connection/wlan.py @@ -106,7 +106,7 @@ def write(self, data: bytes) -> int: sent = 0 while remaining > 0: - chunk = data[sent : min(remaining, buf_size)] + chunk = data[sent : sent + min(remaining, buf_size)] sent += self._sock.send(chunk) remaining -= len(chunk)