Merge pull request #378 from fleinze/patch-4
Compatibility with atmega32U4 (Arduino micro)
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
int main(void) {
|
int main(void) {
|
||||||
init();
|
init();
|
||||||
#if defined(USBCON)
|
#if defined(USBCON)
|
||||||
|
#if defined(ARDUINO_ARCH_SAMD)
|
||||||
USBDevice.init();
|
USBDevice.init();
|
||||||
|
#endif
|
||||||
USBDevice.attach();
|
USBDevice.attach();
|
||||||
#endif
|
#endif
|
||||||
_begin(); // Startup MySensors library
|
_begin(); // Startup MySensors library
|
||||||
|
|||||||
Reference in New Issue
Block a user