Merge pull request #616 from tekka007/SAMDfix

Fix for latest SAMD board defs 1.6.8
This commit is contained in:
Thomas Mørch
2016-10-16 13:11:08 +02:00
committed by GitHub
+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();