abcminiuser / lufa

LUFA - the Lightweight USB Framework for AVRs.
http://www.lufa-lib.org
1.03k stars 321 forks source link

HID Parser Not Returning All Collections #182

Open SukkoPera opened 2 years ago

SukkoPera commented 2 years ago

First of all, thanks for this project!

I think there's a bug in the HIDParser: when a report descriptor contains multiple reports, only collections for the very last report are retained. The others are overwritten during the parsing process, since at the beginning of every report the code starts storing collections at item 0.