aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/CDC.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2012-02-22 22:33:44 -0500
committerZach Eveland <zeveland@blacklabel-development.com>2012-02-22 22:33:44 -0500
commit0138ee9b0167da66a9fb16602e57dc11bf02a563 (patch)
tree7faa630b469629af585ddda70216f9f8abadd733 /cores/arduino/CDC.cpp
parent66019a755039cca92c0bdd3d3c59c9b7114efac9 (diff)
shortened the watchdog period for resetting Leonardo from 2 s to 250 ms. Reset into bootloader is much snappier.
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 0fa06bc..7f33a6e 100644
--- a/cores/arduino/CDC.cpp
+++ b/cores/arduino/CDC.cpp
@@ -107,7 +107,7 @@ bool WEAK CDC_Setup(Setup& setup)
// like servicing endpoints before the sketch ends
if (0 != _usbLineInfo.lineState && 1200 == _usbLineInfo.dwDTERate) {
*(uint16_t *)0x0A00 = 0x7777;
- wdt_enable(WDTO_2S);
+ wdt_enable(WDTO_250MS);
}
return true;
}