diff options
| author | Ha Thach <[email protected]> | 2024-04-08 23:48:52 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-08 23:48:52 +0700 |
| commit | 42decf28f1bf7512a4c3e7402c9daf83ee241191 (patch) | |
| tree | 1a3ed93956a7d51d592d6ba4de6215725ec43c4c /src/host | |
| parent | d33fe38a6257bcdd60f51a57c9fd19ce2ad1f202 (diff) | |
| parent | be25a3fc20339c27803e68cb1363f89ffe7a7c67 (diff) | |
Merge pull request #1835 from MasterQ32/otg_bringup
Implements deinit functions for host/device mode switch
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 aa0603d47..6a5491998 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -425,7 +425,7 @@ bool tuh_deinit(uint8_t rhport) { // Class drivers for (uint8_t drv_id = 0; drv_id < TOTAL_DRIVER_COUNT; drv_id++) { usbh_class_driver_t const* driver = get_driver(drv_id); - if (driver) { + if (driver && driver->deinit) { TU_LOG_USBH("%s deinit\r\n", driver->name); driver->deinit(); } |
