mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-13 14:51:21 +10:00
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:
+1
-1
@@ -199,7 +199,7 @@ int WiFiManager::getParametersCount() {
|
||||
**/
|
||||
|
||||
// constructors
|
||||
WiFiManager::WiFiManager(Stream& consolePort):_debugPort(consolePort){
|
||||
WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){
|
||||
WiFiManagerInit();
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user