Skip to content

Commit 1c7614b

Browse files
committed
Rely on a definition rather than the magic key
To enable this function you could use arduino/arduino-builder#15
1 parent 043f3de commit 1c7614b

File tree

1 file changed

+1
-1
lines changed
  • hardware/arduino/avr/cores/arduino

1 file changed

+1
-1
lines changed

hardware/arduino/avr/cores/arduino/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void initVariant() { }
2929

3030
void setupUSB() __attribute__((weak));
3131
void setupUSB() {
32-
#if defined(USBCON) && (MAGIC_KEY_POS != (RAMEND-1))
32+
#if defined(USBCON) && defined(DYNAMIC_USB_CORE_INCLUDE))
3333
USBDevice.attach();
3434
#endif
3535
}

0 commit comments

Comments
 (0)