You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directly translates the Device.ctrl_transfer() result check
logic from its old if-statements to an equivalent switch-statement.
The point is to make it clear how each possible result code is
handled. Note that XFER_RESULT_FAILED and XFER_RESULT_TIMEOUT both
return 0 without generating any exception. (but also, tinyusb may
not actually use XFER_RESULT_TIMOUT if its comments are still
accurate)
0 commit comments