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.
This commit is contained in:
Marek Bel 2019-08-20 17:34:42 +02:00
parent f204cdea81
commit 3ed6d0637c

View File

@ -613,7 +613,7 @@ void crashdet_detected(uint8_t mask)
void crashdet_recover() void crashdet_recover()
{ {
crashdet_restore_print_and_continue(); 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() void crashdet_cancel()