1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00
This commit is contained in:
Markus Sattler 2015-11-27 14:02:55 +01:00
parent f115e42105
commit ceb8acbb94
2 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,7 @@ void loop() {
break; break;
case HTTP_UPDATE_NO_UPDATES: case HTTP_UPDATE_NO_UPDATES:
SeriUSE_SERIALal.println("HTTP_UPDATE_NO_UPDATES"); USE_SERIAL.println("HTTP_UPDATE_NO_UPDATES");
break; break;
case HTTP_UPDATE_OK: case HTTP_UPDATE_OK:

View File

@ -112,6 +112,10 @@ t_httpUpdate_return ESP8266HTTPUpdate::handleUpdate(httpClient * http, const cha
DEBUG_HTTP_UPDATE("[httpUpdate] - free Space: %d\n", ESP.getFreeSketchSpace()); DEBUG_HTTP_UPDATE("[httpUpdate] - free Space: %d\n", ESP.getFreeSketchSpace());
DEBUG_HTTP_UPDATE("[httpUpdate] - current Sketch Size: %d\n", ESP.getSketchSize()); DEBUG_HTTP_UPDATE("[httpUpdate] - current Sketch Size: %d\n", ESP.getSketchSize());
if(current_version && current_version[0] != 0x00) {
DEBUG_HTTP_UPDATE("[httpUpdate] - current version: %s\n", current_version);
}
switch(code) { switch(code) {
case 200: ///< OK (Start Update) case 200: ///< OK (Start Update)
if(len > 0) { if(len > 0) {
@ -139,7 +143,7 @@ t_httpUpdate_return ESP8266HTTPUpdate::handleUpdate(httpClient * http, const cha
} }
} else { } else {
ret = HTTP_UPDATE_FAILED; ret = HTTP_UPDATE_FAILED;
DEBUG_HTTP_UPDATE("[httpUpdate] Content-Length is 0 or net set by Server?!\n"); DEBUG_HTTP_UPDATE("[httpUpdate] Content-Length is 0 or not set by Server?!\n");
} }
break; break;
case 304: case 304: