diff --git a/cores/arduino/USB/USBCore.cpp b/cores/arduino/USB/USBCore.cpp index b13ba03e2..fb3046cb4 100644 --- a/cores/arduino/USB/USBCore.cpp +++ b/cores/arduino/USB/USBCore.cpp @@ -16,6 +16,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if defined(USBCON) + #include #include "SAMD21_USBDevice.h" @@ -968,3 +970,4 @@ void USBDeviceClass::ISRHandler() // USBDevice class instance USBDeviceClass USBDevice; +#endif