Fix for latest SAMD board defs 1.6.8
This commit is contained in:
@@ -19,10 +19,13 @@
|
|||||||
|
|
||||||
// Initialize library and handle sketch functions like we want to
|
// Initialize library and handle sketch functions like we want to
|
||||||
|
|
||||||
|
extern "C" void __libc_init_array(void);
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
init();
|
init();
|
||||||
#if defined(USBCON)
|
#if defined(USBCON)
|
||||||
#if defined(ARDUINO_ARCH_SAMD)
|
#if defined(ARDUINO_ARCH_SAMD)
|
||||||
|
__libc_init_array();
|
||||||
USBDevice.init();
|
USBDevice.init();
|
||||||
#endif
|
#endif
|
||||||
USBDevice.attach();
|
USBDevice.attach();
|
||||||
|
|||||||
Reference in New Issue
Block a user