mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
driver/usbdev_fs: fix minor issue about unbind
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -1162,7 +1162,7 @@ static void usbdev_fs_classunbind(FAR struct usbdevclass_driver_s *driver,
|
||||
|
||||
if (fs->eps != NULL)
|
||||
{
|
||||
for (i = 0; i < devinfo->ninterfaces; i++)
|
||||
for (i = 0; i < devinfo->nendpoints; i++)
|
||||
{
|
||||
snprintf(devname, sizeof(devname), "%s/ep%d",
|
||||
devinfo->name, i + 1);
|
||||
|
||||
Reference in New Issue
Block a user