diff --git a/hardware/arduino/sam/cores/sam/USB/CDC.cpp b/hardware/arduino/sam/cores/sam/USB/CDC.cpp index 1ee3a488a..13a3d3afd 100644 --- a/hardware/arduino/sam/cores/sam/USB/CDC.cpp +++ b/hardware/arduino/sam/cores/sam/USB/CDC.cpp @@ -16,11 +16,11 @@ ** SOFTWARE. */ +#if defined(USBCON) #include "Platform.h" #include "USBAPI.h" #include -#if defined(USBCON) #ifdef CDC_ENABLED #if (RAMEND < 1000) diff --git a/hardware/arduino/sam/cores/sam/USB/HID.cpp b/hardware/arduino/sam/cores/sam/USB/HID.cpp index ac6360844..0bdf444af 100644 --- a/hardware/arduino/sam/cores/sam/USB/HID.cpp +++ b/hardware/arduino/sam/cores/sam/USB/HID.cpp @@ -16,11 +16,11 @@ ** SOFTWARE. */ +#if defined(USBCON) #include "Platform.h" #include "USBAPI.h" #include "USBDesc.h" -#if defined(USBCON) #ifdef HID_ENABLED //#define RAWHID_ENABLED @@ -517,4 +517,4 @@ size_t Keyboard_::write(uint8_t c) #endif -#endif /* if defined(USBCON) */ \ No newline at end of file +#endif /* if defined(USBCON) */