From cca9f93067a605bb1a677985e693db1d618d7f90 Mon Sep 17 00:00:00 2001 From: Nicholas Palmer Date: Sat, 21 May 2022 15:54:21 -0700 Subject: [PATCH] usbh_print_intf_desc prints wrong value for tbInterfaceClass (IDFGH-9000) --- components/usb/usb_helpers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/usb/usb_helpers.c b/components/usb/usb_helpers.c index c74451c6bb..b876d26871 100644 --- a/components/usb/usb_helpers.c +++ b/components/usb/usb_helpers.c @@ -213,7 +213,9 @@ static void usbh_print_intf_desc(const usb_intf_desc_t *intf_desc) printf("\tbInterfaceNumber %d\n", intf_desc->bInterfaceNumber); printf("\tbAlternateSetting %d\n", intf_desc->bAlternateSetting); printf("\tbNumEndpoints %d\n", intf_desc->bNumEndpoints); - printf("\tbInterfaceClass 0x%x\n", intf_desc->bInterfaceProtocol); + printf("\tbInterfaceClass 0x%x\n", intf_desc->bInterfaceClass); + printf("\tbInterfaceSubClass 0x%x\n", intf_desc->bInterfaceSubClass); + printf("\tbInterfaceProtocol 0x%x\n", intf_desc->bInterfaceProtocol); printf("\tiInterface %d\n", intf_desc->iInterface); }