fix rt-thread once thread delete

This commit is contained in:
sakimisu
2023-07-12 21:48:18 +08:00
parent d53e8a2adf
commit 47c0255cdc
2 changed files with 5 additions and 1 deletions

View File

@@ -18,6 +18,10 @@ usb_osal_thread_t usb_osal_thread_create(const char *name, uint32_t stack_size,
void usb_osal_thread_delete(usb_osal_thread_t thread)
{
if (thread == NULL) {
return;
}
rt_thread_delete(thread);
}