diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-08-18 19:59:35 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-08-18 19:59:35 -0400 |
commit | 0d592a5fea9b98585fd298e6515f406c9e3a8543 (patch) | |
tree | d1954f91aaba3822260571b979430f4f425834cb /cores/arduino/main.cpp | |
parent | 7d575222afc358c004f6b94a28e9b136a2b92168 (diff) |
USB microcontrollers will call USB.attach() after init(), before setup()
Diffstat (limited to 'cores/arduino/main.cpp')
-rwxr-xr-x | cores/arduino/main.cpp | 4 |
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 (;;) |