aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-08-18 19:59:35 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-08-18 19:59:35 -0400
commit0d592a5fea9b98585fd298e6515f406c9e3a8543 (patch)
treed1954f91aaba3822260571b979430f4f425834cb /cores
parent7d575222afc358c004f6b94a28e9b136a2b92168 (diff)
USB microcontrollers will call USB.attach() after init(), before setup()
Diffstat (limited to 'cores')
-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 (;;)