adafruit / Adafruit_CircuitPython_ESP32SPI

ESP32 as wifi with SPI interface
MIT License
101 stars 74 forks source link

fix recv_into for larger fetches #166

Closed dhalbert closed 2 years ago

dhalbert commented 2 years ago

Fixes #165. Rewrote socket._recv_into to remove superfluous code (received) and fix buffer, length, and index calculations.

This fix only fixes #165. I am still seeing some other oddities, like a few-second delay on some fetches. After this PR is merged to fix this current major version, I have another PR to start to revamp this library more thoroughly.

Informing original reporter here: https://forums.adafruit.com/viewtopic.php?f=60&t=189508