mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:03:34 +08:00
Correct a typo in STM32 I2C3 support
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4345 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -489,14 +489,18 @@ static int composite_setup(FAR struct usbdevclass_driver_s *driver,
|
||||
{
|
||||
ret = composite_mkstrdesc(strid, buf);
|
||||
}
|
||||
else if (strid < DEV1_STRIDBASE + DEV1_NSTRIDS)
|
||||
#if DEV1_NSTRIDS > 0
|
||||
else if (strid <= DEV1_STRIDBASE + DEV1_NSTRIDS)
|
||||
{
|
||||
ret = DEV1_MKSTRDESC(strid, buf);
|
||||
}
|
||||
else if (strid < DEV2_STRIDBASE + DEV2_NSTRIDS)
|
||||
#endif
|
||||
#if DEV2_NSTRIDS > 0
|
||||
else if (strid <= DEV2_STRIDBASE + DEV2_NSTRIDS)
|
||||
{
|
||||
ret = DEV2_MKSTRDESC(strid, buf);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user