1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

Support FS update in two steps (#6505)

* Support FS update in two steps
This commit is contained in:
Robin Richtsfeld
2019-10-16 10:11:15 +02:00
committed by david gauchard
parent 40f456aca3
commit 45d71ae4bd
3 changed files with 45 additions and 8 deletions

View File

@ -389,7 +389,11 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
DEBUG_HTTP_UPDATE("[httpUpdate] Update ok\n");
http.end();
#ifdef ATOMIC_FS_UPDATE
if(_rebootOnUpdate) {
#else
if(_rebootOnUpdate && !spiffs) {
#endif
ESP.restart();
}