adafruit / Adafruit_CircuitPython_ESP32SPI

ESP32 as wifi with SPI interface
MIT License
103 stars 75 forks source link

Fix double subtraction of bytes_read from num_to_read in recv_into #184

Closed us3r64 closed 9 months ago

us3r64 commented 9 months ago

If socket data is buffered and multiple readings happens to get the expected nbytes, bytes_read is going to be double subtracted.

Fix: https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/pull/183

dhalbert commented 9 months ago

Fjxed by #183.