From 7a67729db1f6aeb3c1132051da8c8ef832c0ed0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 13 Feb 2018 21:55:47 +0100 Subject: [PATCH] Automatically dump info on telnet connection if TERMINAL_SUPPORT is disabled --- code/espurna/telnet.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/espurna/telnet.ino b/code/espurna/telnet.ino index 33857cac..93703c64 100644 --- a/code/espurna/telnet.ino +++ b/code/espurna/telnet.ino @@ -117,6 +117,14 @@ void _telnetNewClient(AsyncClient *client) { }, 0); DEBUG_MSG_P(PSTR("[TELNET] Client #%u connected\n"), i); + + // If there is no terminal support automatically dump info and crash data + #if TERMINAL_SUPPORT == 0 + info(); + wifiStatus(); + debugDumpCrashInfo(); + #endif + _telnetFirst = true; wifiReconnectCheck(); return;