mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
Fix usbd empty builtin driver warning
Generated-by: OpenAI Codex Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
This commit is contained in:
@ -378,7 +378,7 @@ TU_ATTR_ALWAYS_INLINE static inline usbd_class_driver_t const * get_driver(uint8
|
||||
driver = &_app_driver[drvid];
|
||||
} else{
|
||||
drvid -= _app_driver_count;
|
||||
if (drvid < BUILTIN_DRIVER_COUNT) {
|
||||
if (BUILTIN_DRIVER_COUNT > 0 && drvid < BUILTIN_DRIVER_COUNT) {
|
||||
driver = &_usbd_driver[drvid];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user