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:
committed by
david gauchard
parent
40f456aca3
commit
45d71ae4bd
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user