mirror of
https://github.com/espressif/esp-idf
synced 2025-03-14 03:29:11 -04:00
SPI transfer length is bits, not bytes, so the error should indicate bits. Also, there are separate lengths for rx and tx (confusingly named rxlength and length... if rxlength is 0, length is used). The code checks the tx length for the rx, so it never validates rxlength. Originally contributed as part of #511 https://github.com/espressif/esp-idf/pull/511