From 4b319d9b0cc61575ff597a1fe44f306de5ef640d Mon Sep 17 00:00:00 2001 From: ijm7 Date: Sun, 7 Jan 2018 11:54:21 +0000 Subject: [PATCH] UpdaterClass::printError now accepts the Print object --- cores/esp8266/Updater.cpp | 2 +- cores/esp8266/Updater.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp8266/Updater.cpp b/cores/esp8266/Updater.cpp index 90b9c13ac..6e91e90ca 100644 --- a/cores/esp8266/Updater.cpp +++ b/cores/esp8266/Updater.cpp @@ -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")); diff --git a/cores/esp8266/Updater.h b/cores/esp8266/Updater.h index 0f98cafd4..4a885cc18 100644 --- a/cores/esp8266/Updater.h +++ b/cores/esp8266/Updater.h @@ -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)