Skip to content

Commit 31b22fb

Browse files
Move 2 strings into PROGMEM
A couple error strings weren't in PMEM. Move them.
1 parent 2b4016e commit 31b22fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cores/esp8266/Updater.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,9 @@ void UpdaterClass::printError(Print &out){
500500
} else if(_error == UPDATE_ERROR_STREAM){
501501
out.println(F("Stream Read Timeout"));
502502
} else if(_error == UPDATE_ERROR_MD5){
503-
//out.println(F("MD5 Check Failed"));
504-
out.printf("MD5 Failed: expected:%s, calculated:%s\n", _target_md5.c_str(), _md5.toString().c_str());
503+
out.printf_P(PSTR("MD5 Failed: expected:%s, calculated:%s\n"), _target_md5.c_str(), _md5.toString().c_str());
505504
} else if(_error == UPDATE_ERROR_SIGN){
506-
out.printf("Signature verification failed\n");
505+
out.println(F("Signature verification failed"));
507506
} else if(_error == UPDATE_ERROR_FLASH_CONFIG){
508507
out.printf_P(PSTR("Flash config wrong real: %d IDE: %d\n"), ESP.getFlashChipRealSize(), ESP.getFlashChipSize());
509508
} else if(_error == UPDATE_ERROR_NEW_FLASH_CONFIG){

0 commit comments

Comments
 (0)