shared/tinyusb: Fix CDC bNumInterfaces value.

This fixes a regression from c8913fdbfa

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-11-14 13:03:33 +11:00
parent c8913fdbfa
commit dbb0019666
1 changed files with 1 additions and 1 deletions

View File

@ -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