diff options
| author | Zachery Littell <[email protected]> | 2020-10-02 16:02:00 -0500 |
|---|---|---|
| committer | Zachery Littell <[email protected]> | 2020-10-02 16:02:00 -0500 |
| commit | 081af79009dc40ab41be9976d22629c7d251a50d (patch) | |
| tree | 9b5b5234b65a158694885b8f338449f2dc7f14a9 /examples/device/hid_multipleinterface/src/usb_descriptors.c | |
| parent | 34775d909da5de2585821bf31370040d1fbb5f4a (diff) | |
fix simple pull request comments. Implement descriptor index hack.
Diffstat (limited to 'examples/device/hid_multipleinterface/src/usb_descriptors.c')
| -rw-r--r-- | examples/device/hid_multipleinterface/src/usb_descriptors.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/device/hid_multipleinterface/src/usb_descriptors.c b/examples/device/hid_multipleinterface/src/usb_descriptors.c index f8423bdd1..a1a98c773 100644 --- a/examples/device/hid_multipleinterface/src/usb_descriptors.c +++ b/examples/device/hid_multipleinterface/src/usb_descriptors.c @@ -24,7 +24,6 @@ */ #include "tusb.h" -#include "usb_descriptors.h" /* A combination of interfaces must have a unique product id, since PC will save device driver after the first plug. * Same VID/PID with different interface e.g MSC (first), then CDC (later) will possibly cause system error on PC. @@ -73,12 +72,12 @@ uint8_t const * tud_descriptor_device_cb(void) uint8_t const desc_hid_report1[] = { - TUD_HID_REPORT_DESC_KEYBOARD( HID_REPORT_ID(REPORT_ID_KEYBOARD) ) + TUD_HID_REPORT_DESC_KEYBOARD() }; uint8_t desc_hid_report2[] = { - TUD_HID_REPORT_DESC_MOUSE ( HID_REPORT_ID(REPORT_ID_MOUSE) ) + TUD_HID_REPORT_DESC_MOUSE() }; // Invoked when received GET HID REPORT DESCRIPTOR |
