From 9b294b96856ad20f735fe45a777d74486906a10c Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 30 Sep 2025 17:25:55 +0200 Subject: [PATCH] Fix build Signed-off-by: Pol Henarejos --- src/usb/usb_descriptors.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/usb/usb_descriptors.c b/src/usb/usb_descriptors.c index c921053..67f52c8 100644 --- a/src/usb/usb_descriptors.c +++ b/src/usb/usb_descriptors.c @@ -369,25 +369,6 @@ uint16_t const *tud_descriptor_string_cb(uint8_t index, uint16_t langid) { str = phy_data.usb_product; } } - else if (index >= 5) { - uint8_t itf_index = index - 5; - if (itf_index == ITF_HID) { - str = string_desc_arr[5]; - } - else if (itf_index == ITF_HID_KB) { - str = string_desc_arr[6]; - } -#ifdef USB_ITF_CCID - else if (itf_index == ITF_CCID) { - str = string_desc_arr[7]; - } -#endif -#ifdef USB_ITF_WCID - else if (itf_index == ITF_WCID) { - str = string_desc_arr[8]; - } -#endif - } uint8_t buff_avail = sizeof(_desc_str) / sizeof(_desc_str[0]) - 1; if (index >= 4) {