From 23d2327a527db0c6fcbcee4e9611ff4cb9f03cf0 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 12 Feb 2025 09:57:58 +0800 Subject: [PATCH] fix(core/usbd_core): fix return with break in ep0 thread Signed-off-by: sakumisu <1203593632@qq.com> --- core/usbd_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/usbd_core.c b/core/usbd_core.c index f95ee753..a02bc3c6 100644 --- a/core/usbd_core.c +++ b/core/usbd_core.c @@ -1454,7 +1454,7 @@ static void usbdev_ep0_thread(CONFIG_USB_OSAL_THREAD_SET_ARGV) g_usbd_core[busid].ep0_data_buf = g_usbd_core[busid].req_data; if (!usbd_setup_request_handler(busid, setup, &g_usbd_core[busid].ep0_data_buf, &g_usbd_core[busid].ep0_data_buf_len)) { usbd_ep_set_stall(busid, USB_CONTROL_IN_EP0); - return; + continue; } /*Send status to host*/