diff options
author | starkjohann <starkjohann@users.noreply.github.com> | 2017-01-24 22:34:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 22:34:04 +0100 |
commit | 59f435f29380769e013c6defd85cb22a81982c46 (patch) | |
tree | 8efa1fd8d6d2d92afc3fac5eb85ba8d921b24f3c | |
parent | 39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf (diff) | |
parent | 657973c54a080f017124a46649e7934c6419314e (diff) | |
download | v-usb-59f435f29380769e013c6defd85cb22a81982c46.tar.gz v-usb-59f435f29380769e013c6defd85cb22a81982c46.tar.bz2 v-usb-59f435f29380769e013c6defd85cb22a81982c46.zip |
Merge pull request #1 from patthoyts/master
usbdrv: support HID descriptors over 255 bytes
-rw-r--r-- | usbdrv/usbdrv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c index b6df986..c5bb664 100644 --- a/usbdrv/usbdrv.c +++ b/usbdrv/usbdrv.c @@ -169,7 +169,8 @@ 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 & 0xFF), /* descriptor length (low byte) */ + ((USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH >> 8) & 0xFF), /* (high byte) */ #endif #if USB_CFG_HAVE_INTRIN_ENDPOINT /* endpoint descriptor for endpoint 1 */ 7, /* sizeof(usbDescrEndpoint) */ |