mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-09 00:21:44 +08:00
check class_driver is null
This commit is contained in:
parent
404225ade4
commit
7ee77b42ee
@ -815,7 +815,7 @@ int lsusb(int argc, char **argv)
|
||||
hport = &hub->child[port];
|
||||
if (hport->connected) {
|
||||
for (uint8_t i = 0; i < hport->config.config_desc.bNumInterfaces; i++) {
|
||||
if (hport->config.intf[i].class_driver->driver_name) {
|
||||
if (hport->config.intf[i].class_driver && hport->config.intf[i].class_driver->driver_name) {
|
||||
USB_LOG_RAW("\t|__Port %u, dev addr:0x%02x, If %u, ClassDriver=%s\r\n",
|
||||
hport->port,
|
||||
hport->dev_addr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user