From b50a6a2db956129d911ca6f6afb2563e38fe1dae Mon Sep 17 00:00:00 2001 From: d3v1c3nv11 Date: Mon, 6 Nov 2017 16:33:05 +0200 Subject: Update Descriptors.c --- TERES-HID/Descriptors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'TERES-HID/Descriptors.c') 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); -- cgit v1.2.3