diff options
| author | hathach <[email protected]> | 2018-08-01 00:50:04 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-08-01 00:50:04 +0700 |
| commit | 6d96b12e27ae60ca500365ee2137105145ada9dd (patch) | |
| tree | 9c4435313a565499ba35184525589b4b0b9b4218 /src/class | |
| parent | 9444d45af6dfff6a34ac290cf5a221abd0c2529b (diff) | |
improve auto descriptor
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index 2616155b8..0527c14bf 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -346,7 +346,7 @@ tusb_error_t hidd_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, u if (desc_itf->bInterfaceProtocol == HID_PROTOCOL_KEYBOARD)
{
p_hid = &_hidd_itf[ITF_IDX_BOOT_KBD];
- p_hid->desc_report = tud_desc_set.hid_report.boot_keyboard;
+ p_hid->desc_report = usbd_desc_set->hid_report.boot_keyboard;
p_hid->get_report_cb = tud_hid_keyboard_get_report_cb;
p_hid->set_report_cb = tud_hid_keyboard_set_report_cb;
@@ -362,7 +362,7 @@ tusb_error_t hidd_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, u if (desc_itf->bInterfaceProtocol == HID_PROTOCOL_MOUSE)
{
p_hid = &_hidd_itf[ITF_IDX_BOOT_MSE];
- p_hid->desc_report = tud_desc_set.hid_report.boot_mouse;
+ p_hid->desc_report = usbd_desc_set->hid_report.boot_mouse;
p_hid->get_report_cb = tud_hid_mouse_get_report_cb;
p_hid->set_report_cb = tud_hid_mouse_set_report_cb;
@@ -383,7 +383,7 @@ tusb_error_t hidd_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, u // TODO parse report ID for keyboard, mouse
p_hid = &_hidd_itf[ITF_IDX_GENERIC];
- p_hid->desc_report = tud_desc_set.hid_report.generic;
+ p_hid->desc_report = usbd_desc_set->hid_report.generic;
p_hid->get_report_cb = tud_hid_generic_get_report_cb;
p_hid->set_report_cb = tud_hid_generic_set_report_cb;
|
