mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
add wait time after reset
This commit is contained in:
parent
279ee266ac
commit
93f215cb2e
@ -125,6 +125,10 @@ void EspClass::reset(void)
|
|||||||
void EspClass::restart(void)
|
void EspClass::restart(void)
|
||||||
{
|
{
|
||||||
system_restart();
|
system_restart();
|
||||||
|
delay(5000);
|
||||||
|
system_restart();
|
||||||
|
delay(20000);
|
||||||
|
reset(); // if we still have not reset force it!
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t EspClass::getVcc(void)
|
uint16_t EspClass::getVcc(void)
|
||||||
@ -436,7 +440,7 @@ bool EspClass::updateSketch(Stream& in, uint32_t size) {
|
|||||||
ebcmd.args[1] = 0x00000;
|
ebcmd.args[1] = 0x00000;
|
||||||
ebcmd.args[2] = size;
|
ebcmd.args[2] = size;
|
||||||
eboot_command_write(&ebcmd);
|
eboot_command_write(&ebcmd);
|
||||||
|
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
return true; // never happens
|
return true; // never happens
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user