I was having issues on Adafruit grand central M4, Marlin was sending chars and they were lost, I checked code and found this:
if (usbd.epBank1IsReady(ep)) {
// previous transfer is still not complete
is it correct?
or it should be
if (!usbd.epBank1IsReady(ep)) {
// previous transfer is still not complete
as I found after some search, my issue was in Tinyusb implementation and I fixed it, but I ask here about this doubt.
I didn't dig into code and also my assumption of how usb endpoints work may be completely wrong (don't know much about it) but I just read comment (if previous is still not complete I though ep should be not ready)...
I was having issues on Adafruit grand central M4, Marlin was sending chars and they were lost, I checked code and found this:
is it correct? or it should be
as I found after some search, my issue was in Tinyusb implementation and I fixed it, but I ask here about this doubt. I didn't dig into code and also my assumption of how usb endpoints work may be completely wrong (don't know much about it) but I just read comment (if previous is still not complete I though ep should be not ready)...