Browse Source

serial_dump: add description about bad_isr

Yuri D'Elia 3 years ago
parent
commit
fa0f58d5bc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Firmware/Marlin_main.cpp

+ 4 - 2
Firmware/Marlin_main.cpp

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