diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-09-21 06:09:07 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-09-21 06:09:07 +0000 |
commit | 8b420566cd4e26a963ad79988ff51f93e396ac42 (patch) | |
tree | 411c496f0b7d93922d9e6dcdba5b79e37239f8ba /Demos/Device/ClassDriver/GenericHID | |
parent | 99ff27e4038b90eeed38c2a15ca8352152364d68 (diff) | |
download | lufa-8b420566cd4e26a963ad79988ff51f93e396ac42.tar.gz lufa-8b420566cd4e26a963ad79988ff51f93e396ac42.tar.bz2 lufa-8b420566cd4e26a963ad79988ff51f93e396ac42.zip |
Fix Class Driver GenericHID demo using the wrong size for the returned reports.
Diffstat (limited to 'Demos/Device/ClassDriver/GenericHID')
-rw-r--r-- | Demos/Device/ClassDriver/GenericHID/Descriptors.c | 2 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/GenericHID/GenericHID.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Device/ClassDriver/GenericHID/Descriptors.c b/Demos/Device/ClassDriver/GenericHID/Descriptors.c index a18c0aa95..3b2af81ef 100644 --- a/Demos/Device/ClassDriver/GenericHID/Descriptors.c +++ b/Demos/Device/ClassDriver/GenericHID/Descriptors.c @@ -46,7 +46,7 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM GenericReport[] = { /* Use the HID class driver's standard Vendor HID report. - * Vendor Usage Page: 1 + * Vendor Usage Page: 0 * Vendor Collection Usage: 1 * Vendor Report IN Usage: 2 * Vendor Report OUT Usage: 3 diff --git a/Demos/Device/ClassDriver/GenericHID/GenericHID.c b/Demos/Device/ClassDriver/GenericHID/GenericHID.c index f44d7fc2e..466efaf7f 100644 --- a/Demos/Device/ClassDriver/GenericHID/GenericHID.c +++ b/Demos/Device/ClassDriver/GenericHID/GenericHID.c @@ -151,7 +151,7 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn Data[2] = ((CurrLEDMask & LEDS_LED3) ? 1 : 0); Data[3] = ((CurrLEDMask & LEDS_LED4) ? 1 : 0); - *ReportSize = sizeof(GENERIC_REPORT_SIZE); + *ReportSize = GENERIC_REPORT_SIZE; return false; } |