We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac5db72 commit c1053bcCopy full SHA for c1053bc
components/arduino_tinyusb/src/dcd_dwc2.c
@@ -44,7 +44,7 @@
44
#if TU_CHECK_MCU(OPT_MCU_GD32VF103)
45
#define DWC2_EP_COUNT(_dwc2) DWC2_EP_MAX
46
#else
47
- #define DWC2_EP_COUNT(_dwc2) ((_dwc2)->ghwcfg2_bm.num_dev_ep)
+ #define DWC2_EP_COUNT(_dwc2) ((_dwc2)->ghwcfg2_bm.num_dev_ep + 1)
48
#endif
49
50
//--------------------------------------------------------------------+
0 commit comments