aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/USBtoSerial
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2015-12-02 18:56:52 +1100
committerDean Camera <dean@fourwalledcubicle.com>2015-12-02 18:56:52 +1100
commit92e9cb71e290ea7e05d15f4761b8a07d786a8aa9 (patch)
treeb92a141f35ade993da399a1c068839b65a2319a3 /Projects/USBtoSerial
parentf42a4f3a47f23208d70dca308d302d9ba5a80c46 (diff)
downloadlufa-92e9cb71e290ea7e05d15f4761b8a07d786a8aa9.tar.gz
lufa-92e9cb71e290ea7e05d15f4761b8a07d786a8aa9.tar.bz2
lufa-92e9cb71e290ea7e05d15f4761b8a07d786a8aa9.zip
Fixed incorrect CALLBACK_USB_GetDescriptor() wIndex parameter type (thanks to matlo).
Diffstat (limited to 'Projects/USBtoSerial')
-rw-r--r--Projects/USBtoSerial/Descriptors.c2
-rw-r--r--Projects/USBtoSerial/Descriptors.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Projects/USBtoSerial/Descriptors.c b/Projects/USBtoSerial/Descriptors.c
index 1a4ef3cca..e062a9cf0 100644
--- a/Projects/USBtoSerial/Descriptors.c
+++ b/Projects/USBtoSerial/Descriptors.c
@@ -200,7 +200,7 @@ const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"LU
* 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);
diff --git a/Projects/USBtoSerial/Descriptors.h b/Projects/USBtoSerial/Descriptors.h
index 8e064d2b5..e6b02c899 100644
--- a/Projects/USBtoSerial/Descriptors.h
+++ b/Projects/USBtoSerial/Descriptors.h
@@ -102,7 +102,7 @@
/* Function Prototypes: */
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
- const uint8_t wIndex,
+ const uint16_t wIndex,
const void** const DescriptorAddress)
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);