1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

Fix example for ESP8266httpUpdate (#2251)

* Fix minor typo in spelling of failed. Removed s from http paths.

* add check if we are just updating spiffs to not reboot. example now works with this change.
This commit is contained in:
sk1tt1sh
2016-07-18 05:33:34 -06:00
committed by Ivan Grokhotkov
parent 3f1ab1fd81
commit 9c36ff9932
2 changed files with 4 additions and 4 deletions

View File

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