diff options
| author | hathach <[email protected]> | 2023-03-22 09:23:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-22 09:23:11 +0700 |
| commit | 0921edaf5924d498e8115815dc23acfb1decb7a0 (patch) | |
| tree | e5ffed228db2006ade9b8903fc920d15e1c3aa90 /src | |
| parent | a97f39151ebdf5569ff4831902648c518821a25c (diff) | |
use tud_inited() instead of tusb_inited()
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 0fb236a88..cee56af60 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -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) |
