Browse Source

Automatically dump info on telnet connection if TERMINAL_SUPPORT is disabled

rfm69
Xose Pérez 6 years ago
parent
commit
7a67729db1
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      code/espurna/telnet.ino

+ 8
- 0
code/espurna/telnet.ino View File

@ -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;


Loading…
Cancel
Save