aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2012-03-14 18:17:22 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2012-03-14 18:17:22 -0400
commit8c618773b56a302b9fda0a0c14da34e09bba25fa (patch)
tree8d4e5ba1f2aa0bb57208415ae13d16a1757083c5 /cores/arduino
parent083f7c88915db70e1c41997dc9dbd94249aca4e7 (diff)
reduced delay before starting the Leonardo bootloader
Since we use a magic RAM flag to signal to the bootloader there's a risk of the sketch overwriting the magic RAM location before the bootloader starts. By reducing the watchdog timeout we reduce the chance of this happening.
Diffstat (limited to 'cores/arduino')
-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 94faf2e..7206aa6 100644
--- a/cores/arduino/CDC.cpp
+++ b/cores/arduino/CDC.cpp
@@ -111,7 +111,7 @@ bool WEAK CDC_Setup(Setup& setup)
// Serial1.print(">"); Serial1.println(_usbLineInfo.lineState, HEX);
if ((_usbLineInfo.lineState & 0x01) == 0) {
*(uint16_t *)0x0A00 = 0x7777;
- wdt_enable(WDTO_250MS);
+ wdt_enable(WDTO_120MS);
} else {
// Most OSs do some intermediate steps when configuring ports and DTR can
// twiggle more than once before stabilizing.