Cleanup per review on PR

This commit is contained in:
Zachery Littell
2020-10-08 11:59:12 -05:00
parent db3fe97f62
commit 298aa1b669
3 changed files with 13 additions and 11 deletions

View File

@@ -101,7 +101,7 @@
#define CFG_TUD_VENDOR 0
// HID buffer size Should be sufficient to hold ID (if any) + Data
#define CFG_TUD_HID_EP_BUFSIZE 16
#define CFG_TUD_HID_EP_BUFSIZE 8
#ifdef __cplusplus
}

View File

@@ -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;
}
//--------------------------------------------------------------------+