Browse Source

Clear srash info after displaying it. Change copy

rfm69
Xose Pérez 6 years ago
parent
commit
70f82aa2c4
3 changed files with 3 additions and 1 deletions
  1. +1
    -1
      code/espurna/debug.ino
  2. +1
    -0
      code/espurna/settings.ino
  3. +1
    -0
      code/espurna/telnet.ino

+ 1
- 1
code/espurna/debug.ino View File

@ -195,7 +195,7 @@ void debugDumpCrashInfo() {
return;
}
DEBUG_MSG_P(PSTR("[DEBUG] Crash at %lu ms\n"), crash_time);
DEBUG_MSG_P(PSTR("[DEBUG] Latest crash was at %lu ms after boot\n"), crash_time);
DEBUG_MSG_P(PSTR("[DEBUG] Reason of restart: %u\n"), EEPROM.read(SAVE_CRASH_EEPROM_OFFSET + SAVE_CRASH_RESTART_REASON));
DEBUG_MSG_P(PSTR("[DEBUG] Exception cause: %u\n"), EEPROM.read(SAVE_CRASH_EEPROM_OFFSET + SAVE_CRASH_EXCEPTION_CAUSE));


+ 1
- 0
code/espurna/settings.ino View File

@ -195,6 +195,7 @@ void _settingsInitCommands() {
#if DEBUG_SUPPORT
settingsRegisterCommand(F("CRASH"), [](Embedis* e) {
debugDumpCrashInfo();
debugClearCrashInfo();
DEBUG_MSG_P(PSTR("+OK\n"));
});
#endif


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

@ -123,6 +123,7 @@ void _telnetNewClient(AsyncClient *client) {
info();
wifiStatus();
debugDumpCrashInfo();
debugClearCrashInfo();
#endif
_telnetFirst = true;


Loading…
Cancel
Save