Unify MMU operations' workflow
This commit is contained in:
parent
a02ff0651c
commit
ea01012026
|
|
@ -81,8 +81,7 @@ void MMU2::StopKeepPowered() {
|
||||||
void MMU2::Tune() {
|
void MMU2::Tune() {
|
||||||
switch (lastErrorCode) {
|
switch (lastErrorCode) {
|
||||||
case ErrorCode::HOMING_SELECTOR_FAILED:
|
case ErrorCode::HOMING_SELECTOR_FAILED:
|
||||||
case ErrorCode::HOMING_IDLER_FAILED:
|
case ErrorCode::HOMING_IDLER_FAILED: {
|
||||||
{
|
|
||||||
// Prompt a menu for different values
|
// Prompt a menu for different values
|
||||||
tuneIdlerStallguardThreshold();
|
tuneIdlerStallguardThreshold();
|
||||||
break;
|
break;
|
||||||
|
|
@ -465,9 +464,11 @@ bool MMU2::unload() {
|
||||||
|
|
||||||
WaitForHotendTargetTempBeep();
|
WaitForHotendTargetTempBeep();
|
||||||
|
|
||||||
ReportingRAII rep(CommandInProgress::UnloadFilament);
|
{
|
||||||
UnloadInner();
|
ReportingRAII rep(CommandInProgress::UnloadFilament);
|
||||||
|
UnloadInner();
|
||||||
|
}
|
||||||
|
ScreenUpdateEnable();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -495,10 +496,10 @@ bool MMU2::cut_filament(uint8_t slot, bool enableFullScreenMsg /*= true*/) {
|
||||||
|
|
||||||
ReportingRAII rep(CommandInProgress::CutFilament);
|
ReportingRAII rep(CommandInProgress::CutFilament);
|
||||||
CutFilamentInner(slot);
|
CutFilamentInner(slot);
|
||||||
|
extruder = MMU2_NO_TOOL;
|
||||||
|
tool_change_extruder = MMU2_NO_TOOL;
|
||||||
|
MakeSound(SoundType::Confirm);
|
||||||
}
|
}
|
||||||
extruder = MMU2_NO_TOOL;
|
|
||||||
tool_change_extruder = MMU2_NO_TOOL;
|
|
||||||
MakeSound(SoundType::Confirm);
|
|
||||||
ScreenUpdateEnable();
|
ScreenUpdateEnable();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -517,20 +518,18 @@ bool MMU2::load_filament(uint8_t slot) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
FullScreenMsgLoad(slot);
|
FullScreenMsgLoad(slot);
|
||||||
|
{
|
||||||
ReportingRAII rep(CommandInProgress::LoadFilament);
|
ReportingRAII rep(CommandInProgress::LoadFilament);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
Disable_E0();
|
Disable_E0();
|
||||||
logic.LoadFilament(slot);
|
logic.LoadFilament(slot);
|
||||||
if (manage_response(false, false))
|
if (manage_response(false, false))
|
||||||
break;
|
break;
|
||||||
IncrementMMUFails();
|
IncrementMMUFails();
|
||||||
|
}
|
||||||
|
MakeSound(SoundType::Confirm);
|
||||||
}
|
}
|
||||||
|
|
||||||
MakeSound(SoundType::Confirm);
|
|
||||||
|
|
||||||
ScreenUpdateEnable();
|
ScreenUpdateEnable();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -580,10 +579,11 @@ bool MMU2::eject_filament(uint8_t slot, bool enableFullScreenMsg /* = true */) {
|
||||||
break;
|
break;
|
||||||
IncrementMMUFails();
|
IncrementMMUFails();
|
||||||
}
|
}
|
||||||
|
extruder = MMU2_NO_TOOL;
|
||||||
|
tool_change_extruder = MMU2_NO_TOOL;
|
||||||
|
MakeSound(Confirm);
|
||||||
}
|
}
|
||||||
extruder = MMU2_NO_TOOL;
|
ScreenUpdateEnable();
|
||||||
tool_change_extruder = MMU2_NO_TOOL;
|
|
||||||
MakeSound(Confirm);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue