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:
parent
f204cdea81
commit
3ed6d0637c
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user