Fix an issue with crash_mode_switch toggling
Proposed changes
This commit is contained in:
parent
9272545deb
commit
9de2cbfe8e
|
|
@ -3403,15 +3403,8 @@ static void lcd_silent_mode_set() {
|
||||||
#ifdef TMC2130
|
#ifdef TMC2130
|
||||||
static void crash_mode_switch()
|
static void crash_mode_switch()
|
||||||
{
|
{
|
||||||
if (lcd_crash_detect_enabled())
|
if (lcd_crash_detect_enabled()) lcd_crash_detect_disable();
|
||||||
{
|
else lcd_crash_detect_enable();
|
||||||
lcd_crash_detect_disable();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
lcd_crash_detect_enable();
|
|
||||||
}
|
|
||||||
menu_back();
|
|
||||||
}
|
}
|
||||||
#endif //TMC2130
|
#endif //TMC2130
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue