summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2014-04-17 03:44:16 +0200
committerFlorian Jung <flo@windfisch.org>2014-04-17 03:44:16 +0200
commit5f6aa9a9b8f2e8438886d3c506792825ed2de69c (patch)
tree9496eb9f39fbd963a357a15d81dcee8a6f723b11
parente339f69cbcb85c76b8dce67c9bc2687e619ebebc (diff)
fixed long hid descriptors m(
-rw-r--r--usbdrv/usbdrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c
index d838935..9f376a9 100644
--- a/usbdrv/usbdrv.c
+++ b/usbdrv/usbdrv.c
@@ -169,7 +169,7 @@ PROGMEM const char usbDescriptorConfiguration[] = { /* USB configuration desc
0x00, /* target country code */
0x01, /* number of HID Report (or other HID class) Descriptor infos to follow */
0x22, /* descriptor type: report */
- USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH, 0, /* total length of report descriptor */
+ USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH, (USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH>>8), /* total length of report descriptor */
#endif
#if USB_CFG_HAVE_INTRIN_ENDPOINT /* endpoint descriptor for endpoint 1 */
7, /* sizeof(usbDescrEndpoint) */