aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rwxr-xr-xcores/arduino/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cores/arduino/main.cpp b/cores/arduino/main.cpp
index 3c46f1e..ba00ae0 100755
--- a/cores/arduino/main.cpp
+++ b/cores/arduino/main.cpp
@@ -5,6 +5,10 @@ int main(void)
{
init();
+#if defined(USBCON)
+ USB.attach();
+#endif
+
setup();
for (;;)