From 0d592a5fea9b98585fd298e6515f406c9e3a8543 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Thu, 18 Aug 2011 19:59:35 -0400 Subject: USB microcontrollers will call USB.attach() after init(), before setup() --- cores/arduino/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cores/arduino/main.cpp') 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 (;;) -- cgit v1.2.3-18-g5258