We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9f44b commit c9fdfc7Copy full SHA for c9fdfc7
src/host/usbh.c
@@ -544,7 +544,7 @@ bool tuh_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
544
// Class drivers
545
for (uint8_t drv_id = 0; drv_id < TOTAL_DRIVER_COUNT; drv_id++) {
546
usbh_class_driver_t const* driver = get_driver(drv_id);
547
- if (driver != NULL) {
+ if (driver != NULL && driver->init) {
548
TU_LOG_USBH("%s init\r\n", driver->name);
549
driver->init();
550
}
0 commit comments