PFW-1334 Distinguish between a retry unload and U0 unload

U0 unload uses the ramming sequence, while the retry unload does not because the MMU starts unloading much sooner
This commit is contained in:
Guðni Már Gilbert 2022-06-26 12:20:29 +00:00 committed by D.R.racer
parent 9a52bb5d04
commit 6eb2767dd2
1 changed files with 6 additions and 0 deletions

View File

@ -783,6 +783,12 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
// Act accordingly - one-time handling
switch (pc) {
case ProgressCode::UnloadingToFinda:
if ((CommandInProgress)logic.CommandInProgress() == CommandInProgress::UnloadFilament)
{
// If MK3S sent U0 command, then the code below is not relevant.
break;
}
// This is intended to handle Retry option on MMU error screen
// MMU sends P3 progress code during Query, and if filament is stuck
// in the gears, the MK3S needs to move e-axis as well.