summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TERES-HID/Descriptors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TERES-HID/Descriptors.c b/TERES-HID/Descriptors.c
index bb91baf..89266b6 100644
--- a/TERES-HID/Descriptors.c
+++ b/TERES-HID/Descriptors.c
@@ -67,7 +67,7 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM MouseReport[] =
* Buttons: 3
* Absolute screen coordinates: false
*/
- HID_DESCRIPTOR_MOUSE(-100, 100, -100,100, 3, false)
+ HID_DESCRIPTOR_WHEEL_MOUSE(-100, 100, -100,100, 3, false)
};
/** Same as the MouseReport structure, but defines the keyboard HID interface's report structure. */
@@ -228,7 +228,7 @@ const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(
* USB host.
*/
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
- const uint8_t wIndex,
+ const uint16_t wIndex,
const void** const DescriptorAddress)
{
const uint8_t DescriptorType = (wValue >> 8);