Explorar el Código

[Components][USB]修复当未开启复合设备时HID编译失败

ZYH hace 6 años
padre
commit
294223c80b
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      components/drivers/usb/usbdevice/class/hid.c

+ 3 - 2
components/drivers/usb/usbdevice/class/hid.c

@@ -2,6 +2,8 @@
  * File      : hid.c
  * File      : hid.c
  * COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team
  * COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team
  *
  *
+ * SPDX-License-Identifier: Apache-2.0
+ * 
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes
  * 2017-03-13     Urey         the first version
  * 2017-03-13     Urey         the first version
@@ -294,9 +296,8 @@ const static struct uhid_comm_descriptor _hid_comm_desc =
         USB_HID_PROTOCOL_MOUSE,     /* nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse */
         USB_HID_PROTOCOL_MOUSE,     /* nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse */
 #endif
 #endif
         0x00,
         0x00,
-#endif
     },
     },
-
+#endif
     /* Interface Descriptor */
     /* Interface Descriptor */
     {
     {
         USB_DESC_LENGTH_INTERFACE,
         USB_DESC_LENGTH_INTERFACE,