diff --git a/platformio.ini b/platformio.ini index 499abe5cd..a4a5b260c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -37,7 +37,7 @@ build_flags = ${common.general_flags} ${common.build_flags_4m1m} [env] framework = arduino -platform = espressif8266 +platform = espressif8266@2.2.3 ;platform = https://github.com/platformio/platform-espressif8266#develop ;platform = https://github.com/platformio/platform-espressif8266#feature/stage lib_deps = diff --git a/src/TelnetSpy.cpp b/src/TelnetSpy.cpp index 07b625c7d..dfda8af91 100644 --- a/src/TelnetSpy.cpp +++ b/src/TelnetSpy.cpp @@ -24,16 +24,6 @@ extern "C" { static TelnetSpy * actualObject = NULL; -static void TelnetSpy_putc(char c) { - if (actualObject) { - actualObject->write(c); - } -} - -static void TelnetSpy_ignore_putc(char c) { - ; -} - TelnetSpy::TelnetSpy() { port = TELNETSPY_PORT; telnetServer = NULL; @@ -437,19 +427,8 @@ void TelnetSpy::setDebugOutput(bool en) { if (debugOutput) { actualObject = this; - -#ifdef ESP8266 - os_install_putc1((void *)TelnetSpy_putc); // Set system printing (os_printf) to TelnetSpy - system_set_os_print(true); -#endif - } else { if (actualObject == this) { -#ifdef ESP8266 - system_set_os_print(false); - os_install_putc1((void *)TelnetSpy_ignore_putc); // Ignore system printing -#endif - actualObject = NULL; } } diff --git a/src/TelnetSpy.h b/src/TelnetSpy.h index 2b57d0490..a7884adeb 100644 --- a/src/TelnetSpy.h +++ b/src/TelnetSpy.h @@ -157,7 +157,7 @@ #define TELNETSPY_MAX_BLOCK_SIZE 512 #define TELNETSPY_PING_TIME 1500 #define TELNETSPY_PORT 23 -#define TELNETSPY_CAPTURE_OS_PRINT true +#define TELNETSPY_CAPTURE_OS_PRINT false #define TELNETSPY_WELCOME_MSG "Connection established via Telnet.\n" #define TELNETSPY_REJECT_MSG "Telnet: Only one connection possible.\n"