Skip to content

Commit ecdbde9

Browse files
committed
Allow removing CDC_ENABLED with define switch
1 parent f9348d2 commit ecdbde9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/arduino/USB/USBDesc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@
2020
#define __USBDESC_H__
2121

2222
// CDC or HID can be enabled together.
23+
#ifndef CDC_DISABLED
2324
#define CDC_ENABLED
25+
#endif
26+
27+
#ifndef PLUGGABLE_USB_DISABLED
2428
#define PLUGGABLE_USB_ENABLED
29+
#endif
2530

2631
#ifdef CDC_ENABLED
2732
#define CDC_INTERFACE_COUNT 2

0 commit comments

Comments
 (0)