Skip to content

Commit 4b319d9

Browse files
ijm7igrr
authored andcommitted
UpdaterClass::printError now accepts the Print object
1 parent f28d2eb commit 4b319d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/esp8266/Updater.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ size_t UpdaterClass::writeStream(Stream &data) {
371371
return written;
372372
}
373373

374-
void UpdaterClass::printError(Stream &out){
374+
void UpdaterClass::printError(Print &out){
375375
out.printf_P(PSTR("ERROR[%u]: "), _error);
376376
if(_error == UPDATE_ERROR_OK){
377377
out.println(F("No Error"));

cores/esp8266/Updater.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class UpdaterClass {
7272
/*
7373
Prints the last error to an output stream
7474
*/
75-
void printError(Stream &out);
75+
void printError(Print &out);
7676

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

0 commit comments

Comments
 (0)