@@ -135,21 +135,21 @@ String ESP8266HTTPUpdate::getLastErrorString(void)
135
135
136
136
switch (_lastError) {
137
137
case HTTP_UE_TOO_LESS_SPACE:
138
- return F (" To less space" );
138
+ return F (" Not Enough space" );
139
139
case HTTP_UE_SERVER_NOT_REPORT_SIZE:
140
- return F (" Server not Report Size" );
140
+ return F (" Server Did Not Report Size" );
141
141
case HTTP_UE_SERVER_FILE_NOT_FOUND:
142
- return F (" File not Found (404)" );
142
+ return F (" File Not Found (404)" );
143
143
case HTTP_UE_SERVER_FORBIDDEN:
144
144
return F (" Forbidden (403)" );
145
145
case HTTP_UE_SERVER_WRONG_HTTP_CODE:
146
- return F (" Wrong HTTP code " );
146
+ return F (" Wrong HTTP Code " );
147
147
case HTTP_UE_SERVER_FAULTY_MD5:
148
- return F (" Faulty MD5" );
148
+ return F (" Wrong MD5" );
149
149
case HTTP_UE_BIN_VERIFY_HEADER_FAILED:
150
- return F (" Verify bin header failed " );
150
+ return F (" Verify Bin Header Failed " );
151
151
case HTTP_UE_BIN_FOR_WRONG_FLASH:
152
- return F (" bin for wrong flash size " );
152
+ return F (" New Binary Does Not Fit Flash Size " );
153
153
}
154
154
155
155
return String ();
@@ -274,7 +274,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
274
274
275
275
// check for valid first magic byte
276
276
if (buf[0 ] != 0xE9 ) {
277
- DEBUG_HTTP_UPDATE (" [httpUpdate] magic header not starts with 0xE9\n " );
277
+ DEBUG_HTTP_UPDATE (" [httpUpdate] Magic header does not start with 0xE9\n " );
278
278
_lastError = HTTP_UE_BIN_VERIFY_HEADER_FAILED;
279
279
http.end ();
280
280
return HTTP_UPDATE_FAILED;
@@ -285,7 +285,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
285
285
286
286
// check if new bin fits to SPI flash
287
287
if (bin_flash_size > ESP.getFlashChipRealSize ()) {
288
- DEBUG_HTTP_UPDATE (" [httpUpdate] magic header, new bin not fits SPI Flash\n " );
288
+ DEBUG_HTTP_UPDATE (" [httpUpdate] New binary does not fit SPI Flash size \n " );
289
289
_lastError = HTTP_UE_BIN_FOR_WRONG_FLASH;
290
290
http.end ();
291
291
return HTTP_UPDATE_FAILED;
@@ -309,7 +309,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
309
309
} else {
310
310
_lastError = HTTP_UE_SERVER_NOT_REPORT_SIZE;
311
311
ret = HTTP_UPDATE_FAILED;
312
- DEBUG_HTTP_UPDATE (" [httpUpdate] Content-Length is 0 or not set by Server?!\n " );
312
+ DEBUG_HTTP_UPDATE (" [httpUpdate] Content-Length was 0 or wasn't set by Server?!\n " );
313
313
}
314
314
break ;
315
315
case HTTP_CODE_NOT_MODIFIED:
0 commit comments