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:
@ -29,7 +29,7 @@ void Reboot()
|
||||
cli();
|
||||
|
||||
// Reset the microcontroller to run the bootloader
|
||||
wdt_enable(WDTO_250MS);
|
||||
wdt_enable(WDTO_15MS);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user