From 3ed6d0637c748c3190b686de213de30843952d19 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Tue, 20 Aug 2019 17:34:42 +0200 Subject: [PATCH] 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. --- Firmware/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 0083c9ee..a8c67969 100755 --- a/Firmware/Marlin_main.cpp +++ b/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()