From 211b13a6556494d27dcc1b72ee3cd164f4a95c63 Mon Sep 17 00:00:00 2001 From: gdsports Date: Fri, 16 Feb 2018 15:32:35 -1000 Subject: [PATCH] Fix CDC_ENABLED Undefining CDC_ENABLED triggered a compiler error. With this fix, the CDC ACM configuration can be disabled. --- cores/arduino/USB/USBDesc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cores/arduino/USB/USBDesc.h b/cores/arduino/USB/USBDesc.h index 9ea6abcc1..1962be3d4 100644 --- a/cores/arduino/USB/USBDesc.h +++ b/cores/arduino/USB/USBDesc.h @@ -26,6 +26,9 @@ #ifdef CDC_ENABLED #define CDC_INTERFACE_COUNT 2 #define CDC_ENPOINT_COUNT 3 +#else +#define CDC_INTERFACE_COUNT 0 +#define CDC_ENPOINT_COUNT 0 #endif // CDC