summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-30 15:45:04 +0700
committerhathach <[email protected]>2022-06-30 15:45:04 +0700
commit9ec92ff97bf5e4b5730925ff591ed9f044d2c847 (patch)
tree181863b40dd258618dc5df039ac72bf5f3b9d0d9 /src/device
parent19956f070d4dbf75b7fe4e8108e20837a70007f4 (diff)
rp2040 enable SOF as resumed signal when remote wakeup
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 382efa4d1..c199e647e 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -316,7 +316,7 @@ void usbd_driver_print_control_complete_name(usbd_control_xfer_cb_t callback)
for (uint8_t i = 0; i < TOTAL_DRIVER_COUNT; i++)
{
usbd_class_driver_t const * driver = get_driver(i);
- if ( driver->control_xfer_cb == callback )
+ if ( driver && driver->control_xfer_cb == callback )
{
TU_LOG(USBD_DBG, " %s control complete\r\n", driver->name);
return;