Explorar o código

Re-enable tmc2130_sg_stop_on_crash only if crash detection enabled from menu.

This fixes bug, that disabling crash detection from menu doesn't work during recovery from crash detection.
Marek Bel %!s(int64=5) %!d(string=hai) anos
pai
achega
3ed6d0637c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Firmware/Marlin_main.cpp

+ 1 - 1
Firmware/Marlin_main.cpp

@@ -613,7 +613,7 @@ void crashdet_detected(uint8_t mask)
 void crashdet_recover()
 {
 	crashdet_restore_print_and_continue();
-	tmc2130_sg_stop_on_crash = true;
+	if (lcd_crash_detect_enabled()) tmc2130_sg_stop_on_crash = true;
 }
 
 void crashdet_cancel()