Skip to content

Commit

Permalink
Rely on a definition rather than the magic key
Browse files Browse the repository at this point in the history
To enable this function you could use
arduino/arduino-builder#15
  • Loading branch information
NicoHood committed Sep 24, 2015
1 parent 043f3de commit 1c7614b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/arduino/avr/cores/arduino/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void initVariant() { }

void setupUSB() __attribute__((weak));
void setupUSB() {
#if defined(USBCON) && (MAGIC_KEY_POS != (RAMEND-1))
#if defined(USBCON) && defined(DYNAMIC_USB_CORE_INCLUDE))
USBDevice.attach();
#endif
}
Expand Down

0 comments on commit 1c7614b

Please sign in to comment.