From d7b0507e8a226a639f000fd1c6e7de70117c7c84 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Fri, 3 Feb 2012 21:42:46 -0500 Subject: 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 --- cores/arduino/CDC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/CDC.cpp') 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 (;;); } -- cgit v1.2.3-18-g5258