serial_dump: add description about bad_isr

This commit is contained in:
Yuri D'Elia 2021-06-14 12:30:24 +02:00
parent e90f5d81ec
commit fa0f58d5bc
1 changed files with 4 additions and 2 deletions

View File

@ -1030,6 +1030,9 @@ static void fw_crash_init()
case dump_crash_reason::watchdog: case dump_crash_reason::watchdog:
lcd_puts_P(_i("Watchdog timeout")); lcd_puts_P(_i("Watchdog timeout"));
break; break;
case dump_crash_reason::bad_isr:
lcd_puts_P(_i("Bad interrupt"));
break;
default: default:
lcd_print((uint8_t)crash_reason); lcd_print((uint8_t)crash_reason);
break; break;
@ -1727,7 +1730,7 @@ ISR(WDT_vect)
} }
#endif #endif
#if defined(WATCHDOG) && defined(EMERGENCY_HANDLERS) #ifdef EMERGENCY_HANDLERS
ISR(BADISR_vect) ISR(BADISR_vect)
{ {
WRITE(BEEPER, HIGH); WRITE(BEEPER, HIGH);
@ -1742,7 +1745,6 @@ ISR(BADISR_vect)
} }
#endif #endif
void stack_error() { void stack_error() {
WRITE(BEEPER, HIGH); WRITE(BEEPER, HIGH);
eeprom_update_byte((uint8_t*)EEPROM_FW_CRASH_FLAG, (uint8_t)dump_crash_reason::stack_error); eeprom_update_byte((uint8_t*)EEPROM_FW_CRASH_FLAG, (uint8_t)dump_crash_reason::stack_error);