Skip to content

Commit

Permalink
MMU: Add workaround for broken Tune button
Browse files Browse the repository at this point in the history
If the MMU is processing a command, the Tune button can't be executed.

Change in memory:
Flash: +16 bytes
SRAM: 0 bytes
  • Loading branch information
gudnimg committed May 4, 2024
1 parent abdee5b commit 6f915ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Firmware/mmu2_reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,15 @@ void tuneIdlerStallguardThresholdMenu() {
}

void tuneIdlerStallguardThreshold() {
if ((CommandInProgress)mmu2.GetCommandInProgress() != NoCommand)
{
// Workaround to mitigate an issue where the Tune menu doesn't
// work if the MMU is running a command. For example the Idler
// homing fails during toolchange.
// To save the print, make the Tune button unresponsive for now.
return;
}

putErrorScreenToSleep = true;
menu_submenu(tuneIdlerStallguardThresholdMenu);
}
Expand Down

0 comments on commit 6f915ee

Please sign in to comment.