Skip to content

Commit

Permalink
Fix MMU tool change
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner committed Oct 29, 2024
1 parent cdb6635 commit be4104a
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit be4104a

Please sign in to comment.