Explorar el 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 hace 5 años
padre
commit
3ed6d0637c
Se han modificado 1 ficheros con 1 adiciones y 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()