diff options
| author | Zachery Littell <[email protected]> | 2020-10-08 11:59:12 -0500 |
|---|---|---|
| committer | Zachery Littell <[email protected]> | 2020-10-08 11:59:12 -0500 |
| commit | 298aa1b669a5c77f991c8161ba4c7d84f7a2b674 (patch) | |
| tree | 2aa77f8ec71571d4ca1b40fbdd67c66b8af5494a /examples/device/hid_multipleinterface/src/usb_descriptors.c | |
| parent | db3fe97f62f22747df2c79a841bc1fb235f2f89e (diff) | |
Cleanup per review on PR
Diffstat (limited to 'examples/device/hid_multipleinterface/src/usb_descriptors.c')
| -rw-r--r-- | examples/device/hid_multipleinterface/src/usb_descriptors.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/device/hid_multipleinterface/src/usb_descriptors.c b/examples/device/hid_multipleinterface/src/usb_descriptors.c index 396d22621..dd8ef7120 100644 --- a/examples/device/hid_multipleinterface/src/usb_descriptors.c +++ b/examples/device/hid_multipleinterface/src/usb_descriptors.c @@ -75,7 +75,7 @@ uint8_t const desc_hid_report1[] = TUD_HID_REPORT_DESC_KEYBOARD() }; -uint8_t desc_hid_report2[] = +uint8_t const desc_hid_report2[] = { TUD_HID_REPORT_DESC_MOUSE() }; @@ -86,15 +86,15 @@ uint8_t desc_hid_report2[] = uint8_t const * tud_hid_n_descriptor_report_cb(uint8_t itf) { if (itf == 0) - { - return desc_hid_report1; - } - else if (itf == 1) - { - return desc_hid_report2; - } + { + return desc_hid_report1; + } + else if (itf == 1) + { + return desc_hid_report2; + } - return 0; + return NULL; } //--------------------------------------------------------------------+ |
