Fix an issue with crash_mode_switch toggling

Proposed changes
This commit is contained in:
Guðni Már Gilbert 2023-04-22 13:23:14 +00:00 committed by Alex Voinea
parent 9272545deb
commit 9de2cbfe8e
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 2 additions and 9 deletions

View File

@ -3403,15 +3403,8 @@ static void lcd_silent_mode_set() {
#ifdef TMC2130
static void crash_mode_switch()
{
if (lcd_crash_detect_enabled())
{
lcd_crash_detect_disable();
}
else
{
lcd_crash_detect_enable();
}
menu_back();
if (lcd_crash_detect_enabled()) lcd_crash_detect_disable();
else lcd_crash_detect_enable();
}
#endif //TMC2130