Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MMU tool change #4810

Open
wants to merge 1 commit into
base: MK3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Firmware/mmu2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ bool MMU2::tool_change(uint8_t slot) {
!marlin_printingIsActive()) {
// If Tcodes are used manually through the serial
// we need to unload manually as well -- but only if FINDA detects filament
unload();
UnloadInner();
}

ReportingRAII rep(CommandInProgress::ToolChange);
Expand Down Expand Up @@ -482,10 +482,6 @@ void MMU2::UnloadInner() {
IncrementMMUFails();
}
MakeSound(Confirm);

// no active tool
SetCurrentTool(MMU2_NO_TOOL);
tool_change_extruder = MMU2_NO_TOOL;
}

bool MMU2::unload() {
Expand All @@ -500,6 +496,10 @@ bool MMU2::unload() {
UnloadInner();
}

// no active tool
SetCurrentTool(MMU2_NO_TOOL);
tool_change_extruder = MMU2_NO_TOOL;

ScreenUpdateEnable();
return true;
}
Expand Down
Loading