This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 3129720 tinyusb: Update HID descriptor
3129720 is described below
commit 3129720f2f3d4040f3ce036b03ee9278af113720
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Dec 7 21:18:18 2021 +0100
tinyusb: Update HID descriptor
TinyUSB project changed HID_PROTOCOL_NONE to HID_ITF_PROTOCOL_NONE.
This updated standard descriptors handling code to
use new definition.
---
hw/usb/tinyusb/std_descriptors/src/std_descriptors.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
b/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
index ac3a0db..65b34a3 100755
--- a/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
+++ b/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
@@ -221,7 +221,7 @@ const uint8_t desc_configuration[] = {
#endif
#if CFG_TUD_HID
- TUD_HID_DESCRIPTOR(ITF_NUM_HID, HID_IF_STR_IX, HID_PROTOCOL_NONE,
sizeof(desc_hid_report),
+ TUD_HID_DESCRIPTOR(ITF_NUM_HID, HID_IF_STR_IX, HID_ITF_PROTOCOL_NONE,
sizeof(desc_hid_report),
USBD_HID_REPORT_EP, USBD_HID_REPORT_EP_SIZE,
USBD_HID_REPORT_EP_INTERVAL),
#endif