From dbb0019666a3270b0ed032e2cb9479eadc599c46 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 14 Nov 2022 13:03:33 +1100 Subject: [PATCH] shared/tinyusb: Fix CDC bNumInterfaces value. This fixes a regression from c8913fdbfadd43c879bba4d6d565be8b644f1feb Signed-off-by: Damien George --- shared/tinyusb/tusb_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/tinyusb/tusb_config.h b/shared/tinyusb/tusb_config.h index 71769b67c8..23dbd14a52 100644 --- a/shared/tinyusb/tusb_config.h +++ b/shared/tinyusb/tusb_config.h @@ -118,7 +118,7 @@ #define USBD_STR_STATIC_MAX (USBD_STR_MSC + 1) #define USBD_EP_STATIC_MAX (EPNUM_MSC_OUT + 1) #elif CFG_TUD_CDC -#define USBD_ITF_STATIC_MAX (USBD_ITF_CDC + 1) +#define USBD_ITF_STATIC_MAX (USBD_ITF_CDC + 2) #define USBD_STR_STATIC_MAX (USBD_STR_CDC + 1) #define USBD_EP_STATIC_MAX (((EPNUM_CDC_EP_IN)&~TUSB_DIR_IN_MASK) + 1) #else // !CFG_TUD_MSC && !CFG_TUD_CDC