Skip to content

Commit

Permalink
UpdaterClass::printError now accepts the Print object
Browse files Browse the repository at this point in the history
  • Loading branch information
ijm7 authored and igrr committed Jan 8, 2018
1 parent f28d2eb commit 4b319d9
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cores/esp8266/Updater.cpp
Original file line number Diff line number Diff line change
@@ -371,7 +371,7 @@ size_t UpdaterClass::writeStream(Stream &data) {
return written;
}

void UpdaterClass::printError(Stream &out){
void UpdaterClass::printError(Print &out){
out.printf_P(PSTR("ERROR[%u]: "), _error);
if(_error == UPDATE_ERROR_OK){
out.println(F("No Error"));
2 changes: 1 addition & 1 deletion cores/esp8266/Updater.h
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ class UpdaterClass {
/*
Prints the last error to an output stream
*/
void printError(Stream &out);
void printError(Print &out);

/*
sets the expected MD5 for the firmware (hexString)

0 comments on commit 4b319d9

Please sign in to comment.