mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-07 00:37:04 +01:00
debug: rework boot info and terminal commands
- reduce info lines on boot - more compact `info` command. show versions, modules and crash info when there is one - add `storage` command to display flash layout (experimental) - display full chip id aka MAC, including the oui - fix telnet never printing the crash data b/c telnet in not yet authorized - fix eeprom size not reflecting the space used by the backup sectors - use static flash strings when possible for the fw info
This commit is contained in:
@@ -23,6 +23,8 @@ Updated to use WiFiServer and support reverse connections by Niek van der Maas <
|
||||
#include <vector>
|
||||
|
||||
#include "board.h"
|
||||
#include "crash.h"
|
||||
#include "terminal.h"
|
||||
#include "ws.h"
|
||||
|
||||
#if TELNET_SERVER == TELNET_SERVER_ASYNC
|
||||
@@ -360,14 +362,6 @@ void _telnetNotifyConnected(unsigned char i) {
|
||||
|
||||
DEBUG_MSG_P(PSTR("[TELNET] Client #%u connected\n"), i);
|
||||
|
||||
// If there is no terminal support automatically dump info and crash data
|
||||
#if DEBUG_SUPPORT
|
||||
#if not TERMINAL_SUPPORT
|
||||
crashDump(terminalDefaultStream());
|
||||
crashClear();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (!isEspurnaCore()) {
|
||||
_telnetClientsAuth[i] = !_telnetAuth;
|
||||
if (_telnetAuth) {
|
||||
@@ -381,6 +375,10 @@ void _telnetNotifyConnected(unsigned char i) {
|
||||
_telnetClientsAuth[i] = true;
|
||||
}
|
||||
|
||||
#if DEBUG_SUPPORT
|
||||
crashResetReason(terminalDefaultStream());
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#if TELNET_SERVER == TELNET_SERVER_WIFISERVER
|
||||
|
||||
Reference in New Issue
Block a user