From e7bb9bc28e071cf06697d0b4e03f8d94ada0720c Mon Sep 17 00:00:00 2001 From: Perry Date: Sun, 8 May 2022 07:30:33 -0700 Subject: [PATCH] Change Stream to Print (#1307) * Change Stream to Print 1/2 Update WifiManager to use base class Print instead of Stream. I debug into a custom buffer, and that buffer implements Print, but not Stream. * Change Stream to Print 2/2 Update WifiManager to use base class Print instead of Stream. I debug into a custom buffer, and that buffer implements Print, but not Stream. --- WiFiManager.cpp | 2 +- WiFiManager.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 1cfcd6f1..7576e4ff 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -199,7 +199,7 @@ int WiFiManager::getParametersCount() { **/ // constructors -WiFiManager::WiFiManager(Stream& consolePort):_debugPort(consolePort){ +WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){ WiFiManagerInit(); } diff --git a/WiFiManager.h b/WiFiManager.h index 60e4c0c7..9016ace9 100644 --- a/WiFiManager.h +++ b/WiFiManager.h @@ -179,7 +179,7 @@ class WiFiManagerParameter { class WiFiManager { public: - WiFiManager(Stream& consolePort); + WiFiManager(Print& consolePort); WiFiManager(); ~WiFiManager(); void WiFiManagerInit(); @@ -706,9 +706,9 @@ class WiFiManager // @todo use DEBUG_ESP_PORT ? #ifdef WM_DEBUG_PORT - Stream& _debugPort = WM_DEBUG_PORT; + Print& _debugPort = WM_DEBUG_PORT; #else - Stream& _debugPort = Serial; // debug output stream ref + Print& _debugPort = Serial; // debug output stream ref #endif template