From 5a29fe63ab267c689fad1b68c52ab6e0fa51b2b6 Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Mon, 8 Jan 2018 10:25:17 -0500 Subject: [PATCH] Add missing USBCON wrapper --- cores/arduino/USB/USBCore.cpp | 3 +++ 1 file changed, 3 insertions(+) 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