Fix MMU tool change

This commit is contained in:
3d-gussner 2024-11-08 08:20:16 +01:00
parent ef3527eb0f
commit c6ec5f1356
1 changed files with 5 additions and 5 deletions

View File

@ -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);
@ -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() {
@ -500,6 +496,10 @@ bool MMU2::unload() {
UnloadInner();
}
// no active tool
SetCurrentTool(MMU2_NO_TOOL);
tool_change_extruder = MMU2_NO_TOOL;
ScreenUpdateEnable();
return true;
}