1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

UpdaterClass::printError now accepts the Print object

This commit is contained in:
ijm7 2018-01-07 11:54:21 +00:00 committed by Ivan Grokhotkov
parent f28d2eb7d7
commit 4b319d9b0c
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ size_t UpdaterClass::writeStream(Stream &data) {
return written; return written;
} }
void UpdaterClass::printError(Stream &out){ void UpdaterClass::printError(Print &out){
out.printf_P(PSTR("ERROR[%u]: "), _error); out.printf_P(PSTR("ERROR[%u]: "), _error);
if(_error == UPDATE_ERROR_OK){ if(_error == UPDATE_ERROR_OK){
out.println(F("No Error")); out.println(F("No Error"));

View File

@ -72,7 +72,7 @@ class UpdaterClass {
/* /*
Prints the last error to an output stream Prints the last error to an output stream
*/ */
void printError(Stream &out); void printError(Print &out);
/* /*
sets the expected MD5 for the firmware (hexString) sets the expected MD5 for the firmware (hexString)