From a324477a8af757b3b572230cf276441c10bbf9ef Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 2 May 2025 18:28:38 +0200 Subject: [PATCH] Fix interface descriptor when HID is disabled. Signed-off-by: Pol Henarejos --- src/usb/usb_descriptors.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/usb/usb_descriptors.c b/src/usb/usb_descriptors.c index d4db7d3..06156a6 100644 --- a/src/usb/usb_descriptors.c +++ b/src/usb/usb_descriptors.c @@ -313,10 +313,14 @@ char const *string_desc_arr [] = { "Pico Key", // 2: Product "11223344", // 3: Serials, should use chip ID "Config" // 4: Vendor Interface +#ifdef USB_ITF_HID , "HID Interface" , "HID Keyboard Interface" +#endif +#ifdef USB_ITF_CCID , "CCID OTP FIDO Interface" , "WebCCID Interface" +#endif }; #ifdef ESP_PLATFORM