diff options
| author | hathach <[email protected]> | 2025-03-26 21:13:01 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-03-26 21:32:18 +0700 |
| commit | 901ce2ad93b39c08e8e6b7e5b3f4dbd0b9df879e (patch) | |
| tree | 27959d28ffed7d77d288f5680617bc5c01a707d9 /src/host | |
| parent | 1615120bca3c482b7ba3b2d5620393354acf9c81 (diff) | |
hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement hcd_edpt_close()
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 5925a7be0..e60db53da 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -520,7 +520,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr) { // Loop until there is no more events in the queue while (1) { hcd_event_t event; - if (!osal_queue_receive(_usbh_q, &event, timeout_ms)) return; + if (!osal_queue_receive(_usbh_q, &event, timeout_ms)) { return; } switch (event.event_id) { case HCD_EVENT_DEVICE_ATTACH: |
