1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

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
This commit is contained in:
Zach Eveland
2012-02-03 21:42:46 -05:00
parent 086ed6382c
commit 1e0700b536
2 changed files with 16 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void Reboot()
cli();
// Reset the microcontroller to run the bootloader
wdt_enable(WDTO_250MS);
wdt_enable(WDTO_15MS);
for (;;);
}