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.
This commit is contained in:
Perry
2022-05-08 09:30:33 -05:00
committed by GitHub
parent 137410e184
commit e7bb9bc28e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ int WiFiManager::getParametersCount() {
**/
// constructors
WiFiManager::WiFiManager(Stream& consolePort):_debugPort(consolePort){
WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){
WiFiManagerInit();
}
+3 -3
View File
@@ -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 <typename Generic>