parent
d56f2bc57e
commit
82e0124cb4
|
|
@ -223,17 +223,13 @@ static bool is_mmu_error_monitor_active;
|
||||||
static bool putErrorScreenToSleep;
|
static bool putErrorScreenToSleep;
|
||||||
|
|
||||||
void CheckErrorScreenUserInput() {
|
void CheckErrorScreenUserInput() {
|
||||||
if (isErrorScreenRunning()) {
|
if (is_mmu_error_monitor_active) {
|
||||||
// Call this every iteration to keep the knob rotation responsive
|
// Call this every iteration to keep the knob rotation responsive
|
||||||
// This includes when mmu_loop is called within manage_response
|
// This includes when mmu_loop is called within manage_response
|
||||||
ReportErrorHook((CommandInProgress)mmu2.GetCommandInProgress(), mmu2.GetLastErrorCode(), mmu2.MMULastErrorSource());
|
ReportErrorHook((CommandInProgress)mmu2.GetCommandInProgress(), mmu2.GetLastErrorCode(), mmu2.MMULastErrorSource());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isErrorScreenRunning() {
|
|
||||||
return is_mmu_error_monitor_active;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TuneMenuEntered() {
|
bool TuneMenuEntered() {
|
||||||
return putErrorScreenToSleep;
|
return putErrorScreenToSleep;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ void EndReport(CommandInProgress cip, ProgressCode ec);
|
||||||
/// Checks for error screen user input, if the error screen is open
|
/// Checks for error screen user input, if the error screen is open
|
||||||
void CheckErrorScreenUserInput();
|
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
|
/// Return true if the error screen is sleeping in the background
|
||||||
/// Error screen sleeps when the firmware is rendering complementary
|
/// Error screen sleeps when the firmware is rendering complementary
|
||||||
/// UI to resolve the error screen, for example tuning Idler Stallguard Threshold
|
/// UI to resolve the error screen, for example tuning Idler Stallguard Threshold
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue