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; 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] 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)); 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 #if DEBUG_SUPPORT
settingsRegisterCommand(F("CRASH"), [](Embedis* e) { settingsRegisterCommand(F("CRASH"), [](Embedis* e) {
debugDumpCrashInfo(); debugDumpCrashInfo();
debugClearCrashInfo();
DEBUG_MSG_P(PSTR("+OK\n")); DEBUG_MSG_P(PSTR("+OK\n"));
}); });
#endif #endif


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

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


Loading…
Cancel
Save