Skip to content

Commit 95bcb7c

Browse files
gdsportssandeepmistry
gdsports
authored andcommitted
Fix CDC_ENABLED
Undefining CDC_ENABLED triggered a compiler error. With this fix, the CDC ACM configuration can be disabled.
1 parent 69fcf8d commit 95bcb7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/arduino/USB/USBDesc.h

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#ifdef CDC_ENABLED
2727
#define CDC_INTERFACE_COUNT 2
2828
#define CDC_ENPOINT_COUNT 3
29+
#else
30+
#define CDC_INTERFACE_COUNT 0
31+
#define CDC_ENPOINT_COUNT 0
2932
#endif
3033

3134
// CDC

0 commit comments

Comments
 (0)