1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-04 18:03:20 +03:00

add wait time after reset

This commit is contained in:
Markus Sattler 2015-06-21 21:38:19 +02:00
parent 279ee266ac
commit 93f215cb2e

View File

@ -125,6 +125,10 @@ void EspClass::reset(void)
void EspClass::restart(void)
{
system_restart();
delay(5000);
system_restart();
delay(20000);
reset(); // if we still have not reset force it!
}
uint16_t EspClass::getVcc(void)
@ -436,7 +440,7 @@ bool EspClass::updateSketch(Stream& in, uint32_t size) {
ebcmd.args[1] = 0x00000;
ebcmd.args[2] = size;
eboot_command_write(&ebcmd);
ESP.restart();
return true; // never happens
}