Skip to content

Commit 23d2327

Browse files
committed
fix(core/usbd_core): fix return with break in ep0 thread
Signed-off-by: sakumisu <1203593632@qq.com>
1 parent de7a73b commit 23d2327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/usbd_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ static void usbdev_ep0_thread(CONFIG_USB_OSAL_THREAD_SET_ARGV)
14541454
g_usbd_core[busid].ep0_data_buf = g_usbd_core[busid].req_data;
14551455
if (!usbd_setup_request_handler(busid, setup, &g_usbd_core[busid].ep0_data_buf, &g_usbd_core[busid].ep0_data_buf_len)) {
14561456
usbd_ep_set_stall(busid, USB_CONTROL_IN_EP0);
1457-
return;
1457+
continue;
14581458
}
14591459

14601460
/*Send status to host*/

0 commit comments

Comments
 (0)