Skip to content

Commit ceb8acb

Browse files
committed
typo
1 parent f115e42 commit ceb8acb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libraries/ESP8266httpUpdate/examples/httpUpdate/httpUpdate.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void loop() {
4949
break;
5050

5151
case HTTP_UPDATE_NO_UPDATES:
52-
SeriUSE_SERIALal.println("HTTP_UPDATE_NO_UPDATES");
52+
USE_SERIAL.println("HTTP_UPDATE_NO_UPDATES");
5353
break;
5454

5555
case HTTP_UPDATE_OK:

libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ t_httpUpdate_return ESP8266HTTPUpdate::handleUpdate(httpClient * http, const cha
112112
DEBUG_HTTP_UPDATE("[httpUpdate] - free Space: %d\n", ESP.getFreeSketchSpace());
113113
DEBUG_HTTP_UPDATE("[httpUpdate] - current Sketch Size: %d\n", ESP.getSketchSize());
114114

115+
if(current_version && current_version[0] != 0x00) {
116+
DEBUG_HTTP_UPDATE("[httpUpdate] - current version: %s\n", current_version);
117+
}
118+
115119
switch(code) {
116120
case 200: ///< OK (Start Update)
117121
if(len > 0) {
@@ -139,7 +143,7 @@ t_httpUpdate_return ESP8266HTTPUpdate::handleUpdate(httpClient * http, const cha
139143
}
140144
} else {
141145
ret = HTTP_UPDATE_FAILED;
142-
DEBUG_HTTP_UPDATE("[httpUpdate] Content-Length is 0 or net set by Server?!\n");
146+
DEBUG_HTTP_UPDATE("[httpUpdate] Content-Length is 0 or not set by Server?!\n");
143147
}
144148
break;
145149
case 304:

0 commit comments

Comments
 (0)