aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/CDC.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2012-02-03 21:42:46 -0500
committerZach Eveland <zeveland@blacklabel-development.com>2012-02-03 21:42:46 -0500
commitd7b0507e8a226a639f000fd1c6e7de70117c7c84 (patch)
tree317ffaa2f3e21d1358d8574c2479239f2eec0449 /cores/arduino/CDC.cpp
parentc7df908cec4a3fc36b009cfdb4a8f45bd1e7d91a (diff)
fixed starting Leonardo bootloader from sketch
AvrdudeUploader class opens and closes Leonardo port at the magic baudrate before starting avrdude; reduced reset timeout from 250 ms to 15 ms
Diffstat (limited to 'cores/arduino/CDC.cpp')
-rw-r--r--cores/arduino/CDC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp
index eb1b2c5..6dd1cbe 100644
--- a/cores/arduino/CDC.cpp
+++ b/cores/arduino/CDC.cpp
@@ -29,7 +29,7 @@ void Reboot()
cli();
// Reset the microcontroller to run the bootloader
- wdt_enable(WDTO_250MS);
+ wdt_enable(WDTO_15MS);
for (;;);
}