diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-29 14:15:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-29 14:15:20 +0000 |
commit | 851f6386a381fa4d783255a0ab3a9034c304c675 (patch) | |
tree | ccc5d75083dc4491289a04a2e6e69eb276fdf837 /nuttx/drivers/usbdev | |
parent | a5849bb91060284dc6a7c3cd536ff2210662020e (diff) | |
download | px4-nuttx-851f6386a381fa4d783255a0ab3a9034c304c675.tar.gz px4-nuttx-851f6386a381fa4d783255a0ab3a9034c304c675.tar.bz2 px4-nuttx-851f6386a381fa4d783255a0ab3a9034c304c675.zip |
Correct a typo in STM32 I2C3 support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4345 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/usbdev')
-rw-r--r-- | nuttx/drivers/usbdev/composite.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/drivers/usbdev/composite.c b/nuttx/drivers/usbdev/composite.c index bfd5a0201..aae4f4581 100644 --- a/nuttx/drivers/usbdev/composite.c +++ b/nuttx/drivers/usbdev/composite.c @@ -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; |