Revert a change in the MMU error screen logic

We can pull this code into a common function in a separate PR
This commit is contained in:
Guðni Már Gilbert 2023-02-11 12:19:29 +00:00 committed by DRracer
parent 5b4bc8bcdb
commit 96fc90c80b
1 changed files with 8 additions and 1 deletions

View File

@ -253,7 +253,14 @@ void ReportErrorHook(CommandInProgress /*cip*/, uint16_t ec, uint8_t /*es*/) {
ReportErrorHookState = ReportErrorHookStates::RENDER_ERROR_SCREEN;
break;
case 2:
ReportErrorHookState = ReportErrorHookStates::DISMISS_ERROR_SCREEN;
// Exit error screen and enable lcd updates
lcd_set_custom_characters();
lcd_update_enable(true);
lcd_return_to_status();
sound_wait_for_user_reset();
// Reset the state in case a new error is reported
mmu2.is_mmu_error_monitor_active = false;
ReportErrorHookState = ReportErrorHookStates::RENDER_ERROR_SCREEN;
break;
default:
break;