Skip to content

Commit e7bb9bc

Browse files
authored
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.
1 parent 137410e commit e7bb9bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WiFiManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int WiFiManager::getParametersCount() {
199199
**/
200200

201201
// constructors
202-
WiFiManager::WiFiManager(Stream& consolePort):_debugPort(consolePort){
202+
WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){
203203
WiFiManagerInit();
204204
}
205205

WiFiManager.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class WiFiManagerParameter {
179179
class WiFiManager
180180
{
181181
public:
182-
WiFiManager(Stream& consolePort);
182+
WiFiManager(Print& consolePort);
183183
WiFiManager();
184184
~WiFiManager();
185185
void WiFiManagerInit();
@@ -706,9 +706,9 @@ class WiFiManager
706706

707707
// @todo use DEBUG_ESP_PORT ?
708708
#ifdef WM_DEBUG_PORT
709-
Stream& _debugPort = WM_DEBUG_PORT;
709+
Print& _debugPort = WM_DEBUG_PORT;
710710
#else
711-
Stream& _debugPort = Serial; // debug output stream ref
711+
Print& _debugPort = Serial; // debug output stream ref
712712
#endif
713713

714714
template <typename Generic>

0 commit comments

Comments
 (0)