From 82e0124cb440937962b77f3efdbc9cf2d1b6a981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Thu, 19 Oct 2023 18:27:32 +0000 Subject: [PATCH] mmu: remove isErrorScreenRunning() No change in memory --- Firmware/mmu2_reporting.cpp | 6 +----- Firmware/mmu2_reporting.h | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Firmware/mmu2_reporting.cpp b/Firmware/mmu2_reporting.cpp index e6ae89b20..a44f03947 100644 --- a/Firmware/mmu2_reporting.cpp +++ b/Firmware/mmu2_reporting.cpp @@ -223,17 +223,13 @@ static bool is_mmu_error_monitor_active; static bool putErrorScreenToSleep; void CheckErrorScreenUserInput() { - if (isErrorScreenRunning()) { + if (is_mmu_error_monitor_active) { // Call this every iteration to keep the knob rotation responsive // This includes when mmu_loop is called within manage_response ReportErrorHook((CommandInProgress)mmu2.GetCommandInProgress(), mmu2.GetLastErrorCode(), mmu2.MMULastErrorSource()); } } -bool isErrorScreenRunning() { - return is_mmu_error_monitor_active; -} - bool TuneMenuEntered() { return putErrorScreenToSleep; } diff --git a/Firmware/mmu2_reporting.h b/Firmware/mmu2_reporting.h index 927c2b20b..90ac93b24 100644 --- a/Firmware/mmu2_reporting.h +++ b/Firmware/mmu2_reporting.h @@ -32,9 +32,6 @@ void EndReport(CommandInProgress cip, ProgressCode ec); /// Checks for error screen user input, if the error screen is open void CheckErrorScreenUserInput(); -/// Return true if the printer's LCD is drawing the error screen -bool isErrorScreenRunning(); - /// Return true if the error screen is sleeping in the background /// Error screen sleeps when the firmware is rendering complementary /// UI to resolve the error screen, for example tuning Idler Stallguard Threshold