瀏覽代碼

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
Guðni Már Gilbert 2 年之前
父節點
當前提交
6eb2767dd2
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Firmware/mmu2.cpp

+ 6 - 0
Firmware/mmu2.cpp

@@ -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.