File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/portable/raspberrypi/rp2040 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,9 @@ static void __tusb_irq_path_func(_hw_endpoint_start_next_buffer)(struct hw_endpo
155
155
// For now: skip double buffered for Device mode, OUT endpoint since
156
156
// host could send < 64 bytes and cause short packet on buffer0
157
157
// NOTE this could happen to Host mode IN endpoint
158
- bool const force_single = !(usb_hw -> main_ctrl & USB_MAIN_CTRL_HOST_NDEVICE_BITS ) && !tu_edpt_dir (ep -> ep_addr );
158
+ // Also, Host mode interrupt endpoint hardware is only single buffered
159
+ bool const force_single = (!(usb_hw -> main_ctrl & USB_MAIN_CTRL_HOST_NDEVICE_BITS ) && !tu_edpt_dir (ep -> ep_addr )) ||
160
+ ((usb_hw -> main_ctrl & USB_MAIN_CTRL_HOST_NDEVICE_BITS ) && tu_edpt_number (ep -> ep_addr ) != 0 );
159
161
160
162
if (ep -> remaining_len && !force_single )
161
163
{
You can’t perform that action at this time.
0 commit comments