mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
UpdaterClass::printError now accepts the Print object
This commit is contained in:
parent
f28d2eb7d7
commit
4b319d9b0c
@ -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"));
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user