tobozo / ESP32-USB-Soft-Host

An Arduino wrapper to @sdima1357's usb_soft_host esp-idf example
GNU Affero General Public License v3.0
265 stars 42 forks source link

reference to wrong buffer #1

Closed sdima1357 closed 3 years ago

sdima1357 commented 3 years ago

Copy paste problem :)

https://github.com/tobozo/ESP32-USB-Soft-Host/blob/608ecc9e35d078155ab310e48c7b3651cf5cbe5c/src/usb_host.c#L1374

instead of printCB( pcurrent->Resp0, pcurrent->R0Bytes ); must be: printCB( pcurrent->Resp1, pcurrent->R1Bytes );

Descfription: In Resp0 response from ep0 (end point 0) In Resp1 response from ep1 (end point 1) Several HID devices have 2 end points . For example - combined mouse keyboard device

tobozo commented 3 years ago

whoops thanks for spotting that, fixing now