Fix for latest SAMD board defs 1.6.8

This commit is contained in:
Olivier
2016-10-16 13:05:19 +02:00
parent 54776a4520
commit 5e9ae99a34
+3
View File
@@ -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();