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