Skip to content

Commit

Permalink
Change Stream to Print (#1307)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
pfn authored May 8, 2022
1 parent 137410e commit e7bb9bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int WiFiManager::getParametersCount() {
**/

// constructors
WiFiManager::WiFiManager(Stream& consolePort):_debugPort(consolePort){
WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){
WiFiManagerInit();
}

Expand Down
6 changes: 3 additions & 3 deletions WiFiManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class WiFiManagerParameter {
class WiFiManager
{
public:
WiFiManager(Stream& consolePort);
WiFiManager(Print& consolePort);
WiFiManager();
~WiFiManager();
void WiFiManagerInit();
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit e7bb9bc

Please # to comment.