use tud_inited() instead of tusb_inited()

This commit is contained in:
hathach
2023-03-22 09:23:11 +07:00
parent a97f39151e
commit 0921edaf59
3 changed files with 4 additions and 4 deletions

View File

@@ -450,7 +450,7 @@ static void usbd_reset(uint8_t rhport)
bool tud_task_event_ready(void)
{
// Skip if stack is not initialized
if ( !tusb_inited() ) return false;
if ( !tud_inited() ) return false;
return !osal_queue_empty(_usbd_q);
}
@@ -478,7 +478,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr)
(void) in_isr; // not implemented yet
// Skip if stack is not initialized
if ( !tusb_inited() ) return;
if ( !tud_inited() ) return;
// Loop until there is no more events in the queue
while (1)