fix simple pull request comments. Implement descriptor index hack.

This commit is contained in:
Zachery Littell
2020-10-02 16:02:00 -05:00
parent 34775d909d
commit 081af79009
5 changed files with 25 additions and 47 deletions

View File

@@ -86,8 +86,11 @@ static inline bool tud_hid_mouse_report(uint8_t report_id, uint8_t buttons, int8
// Invoked when received GET HID REPORT DESCRIPTOR request
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete
// TODO Talk about this change... because it is breaking. Might be better way to handle.
#if CFG_TUD_HID>1
uint8_t const * tud_hid_descriptor_report_cb(uint8_t desc_index);
#else
uint8_t const * tud_hid_descriptor_report_cb(void);
#endif
// Invoked when received GET_REPORT control request
// Application must fill buffer report's content and return its length.