[gnoduino: 76/237] USB microcontrollers will call USB.attach() after init(), before setup()
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino: 76/237] USB microcontrollers will call USB.attach() after init(), before setup()
- Date: Sat, 31 Mar 2012 20:21:12 +0000 (UTC)
commit 5eb73426e42781d7d869490b9279773cb9bae0dc
Author: Zach Eveland <zeveland blacklabel-development com>
Date: Thu Aug 18 19:59:35 2011 -0400
USB microcontrollers will call USB.attach() after init(), before setup()
arduino/cores/arduino/main.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/arduino/cores/arduino/main.cpp b/arduino/cores/arduino/main.cpp
index 3c46f1e..ba00ae0 100755
--- a/arduino/cores/arduino/main.cpp
+++ b/arduino/cores/arduino/main.cpp
@@ -5,6 +5,10 @@ int main(void)
{
init();
+#if defined(USBCON)
+ USB.attach();
+#endif
+
setup();
for (;;)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]