xiaoxiang781216 commented on code in PR #14258:
URL: https://github.com/apache/nuttx/pull/14258#discussion_r1799867319


##########
drivers/usbdev/usbmsc.h:
##########
@@ -309,21 +309,22 @@
 
 /* Configuration descriptor size */
 
-#ifndef CONFIG_USBMSC_COMPOSITE
-
-/* The size of the config descriptor: (9 + 9 + 2*7) = 32 */
+#ifdef CONFIG_USBMSC_COMPOSITE
+#ifdef CONFIG_USBDEV_SUPERSPEED

Review Comment:
   ```suggestion
   #if defined(CONFIG_USBMSC_COMPOSITE) && defined(CONFIG_USBDEV_SUPERSPEED)
   ```



##########
drivers/usbdev/usbmsc_desc.c:
##########
@@ -485,13 +486,21 @@ int16_t usbmsc_mkcfgdesc(uint8_t *buf,
 
     {

Review Comment:
   remove { here and at line 428&475



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to