diff options
| author | HiFiPhile <[email protected]> | 2025-09-18 19:09:10 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-09-18 19:09:10 +0200 |
| commit | e621f2f77b19dce0a9f288ebd608ebf98d2f817b (patch) | |
| tree | 199d0d761a984faa012a6fa0097edf7720df473a | |
| parent | b4cc5af32df89199aae7a01e69307c3bbd34eac8 (diff) | |
set driver count to 0
Signed-off-by: HiFiPhile <[email protected]>
| -rw-r--r-- | src/device/usbd.c | 2 | ||||
| -rw-r--r-- | src/host/usbh.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 6b5c3d846..5792359f6 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -397,7 +397,7 @@ bool usbd_control_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t event, // Weak stubs: invoked if no strong implementation is available //--------------------------------------------------------------------+ TU_ATTR_WEAK usbd_class_driver_t const* usbd_app_driver_get_cb(uint8_t* driver_count) { - (void) driver_count; + *driver_count = 0; return NULL; } diff --git a/src/host/usbh.c b/src/host/usbh.c index fafcc0fef..6bafde368 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -89,7 +89,7 @@ TU_ATTR_WEAK bool hcd_dcache_clean_invalidate(const void* addr, uint32_t data_si } TU_ATTR_WEAK usbh_class_driver_t const* usbh_app_driver_get_cb(uint8_t* driver_count) { - (void) driver_count; + *driver_count = 0; return NULL; } |
