From 0138ee9b0167da66a9fb16602e57dc11bf02a563 Mon Sep 17 00:00:00 2001
From: Zach Eveland <zeveland@blacklabel-development.com>
Date: Wed, 22 Feb 2012 22:33:44 -0500
Subject: shortened the watchdog period for resetting Leonardo from 2 s to 250
 ms.  Reset into bootloader is much snappier.

---
 cores/arduino/CDC.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'cores/arduino')

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;
 		}
-- 
cgit v1.2.3-18-g5258