DeqingSun / ch55xduino

An Arduino-like programming API for the CH55X
GNU Lesser General Public License v2.1
441 stars 86 forks source link

endpoint buffers too small #40

Closed nerdralph closed 3 years ago

nerdralph commented 3 years ago

I think they should be 10 bytes, not 8. https://github.com/DeqingSun/ch55xduino/blob/ch55xduino/ch55xduino/ch55x/libraries/Generic_Examples/examples/05.USB/CDCinUserCode/src/userUsbCdc/USBhandler.c#L13

DeqingSun commented 3 years ago

EP1_ADDR is 10 EP2_ADDR is 20 There is a 2 byte gap.

nerdralph commented 3 years ago

OK, missed that. I was just looking at the array size.