summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorZYH <[email protected]>2018-10-09 11:32:41 +0800
committerZYH <[email protected]>2018-10-09 11:32:41 +0800
commit294223c80b3e0123f51d2420ad0d6aa4cd1b776b (patch)
tree00b86a59a91dad808593a911e49283c2e9228a56 /components/drivers
parentdf6cf9b3081fc55c3385ce4ecbc9f98152e33ab1 (diff)
[Components][USB]修复当未开启复合设备时HID编译失败
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/usb/usbdevice/class/hid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/drivers/usb/usbdevice/class/hid.c b/components/drivers/usb/usbdevice/class/hid.c
index f6ed2b18da..05d98def1e 100644
--- a/components/drivers/usb/usbdevice/class/hid.c
+++ b/components/drivers/usb/usbdevice/class/hid.c
@@ -2,6 +2,8 @@
* File : hid.c
* COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Change Logs:
* Date Author Notes
* 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 */
#endif
0x00,
-#endif
},
-
+#endif
/* Interface Descriptor */
{
USB_DESC_LENGTH_INTERFACE,