projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix low level host mode demos not correctly fetching the next endpoint when an invali...
[pub/lufa.git]
/
Demos
/
Host
/
LowLevel
/
KeyboardHostWithParser
/
ConfigDescriptor.c
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/ConfigDescriptor.c
b/Demos/Host/LowLevel/KeyboardHostWithParser/ConfigDescriptor.c
index
d397ca7
..
bf2c4e0
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/ConfigDescriptor.c
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/ConfigDescriptor.c
@@
-83,7
+83,7
@@
uint8_t ProcessConfigurationDescriptor(void)
}
/* Save the HID report size for later use */
}
/* Save the HID report size for later use */
- HIDReportSize = DESCRIPTOR_
CAST(CurrConfigLocation, USB_Descriptor_HID_t).
HIDReportLength;
+ HIDReportSize = DESCRIPTOR_
PCAST(CurrConfigLocation, USB_Descriptor_HID_t)->
HIDReportLength;
while (!(DataINEndpoint))
{
while (!(DataINEndpoint))
{
@@
-108,7
+108,10
@@
uint8_t ProcessConfigurationDescriptor(void)
}
/* Save the HID report size for later use */
}
/* Save the HID report size for later use */
- HIDReportSize = DESCRIPTOR_CAST(CurrConfigLocation, USB_Descriptor_HID_t).HIDReportLength;
+ HIDReportSize = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_HID_t)->HIDReportLength;
+
+ /* Skip the remainder of the loop as we have not found an endpoint yet */
+ continue;
}
/* Retrieve the endpoint address from the endpoint descriptor */
}
/* Retrieve the endpoint address from the endpoint descriptor */