summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-02-12 09:57:58 +0800
committersakumisu <[email protected]>2025-02-12 13:01:12 +0800
commit23d2327a527db0c6fcbcee4e9611ff4cb9f03cf0 (patch)
tree65ccfab8e1dc3fc9cb9c301e7b8d897bbd237edf
parentde7a73bc2fdc11c9755351b4d94fa33edb3cb507 (diff)
fix(core/usbd_core): fix return with break in ep0 thread
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--core/usbd_core.c2
1 files changed, 1 insertions, 1 deletions
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*/