summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-03-22 10:37:06 +0700
committerGitHub <[email protected]>2023-03-22 10:37:06 +0700
commit07976ad26d4fbcad0694aa3a08294af7fd5f759f (patch)
tree582a8f1274c33bbdd5b7da28994f897d842495b1 /src/device
parentec9c666107c0be0f8dc7c2a15e3bdea8c44a50b4 (diff)
parentf27486e19abcc020c93c0c938c71e3692c21b9f5 (diff)
Merge pull request #1968 from hathach/refactor-hid-host
Refactor hid host
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c4
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)