Skip to content

Commit

Permalink
Revert "Fix MMU tool change"
Browse files Browse the repository at this point in the history
This reverts commit be4104a.

Split PR
  • Loading branch information
3d-gussner committed Nov 8, 2024
1 parent be4104a commit 5d4218f
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
UnloadInner();
unload();
}

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

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

bool MMU2::unload() {
Expand All @@ -496,10 +500,6 @@ 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 5d4218f

Please sign in to comment.