Browse Source

Add the load to nozzle sequence once the MK3S takes control and MMU has disengaged idler.

Also removed ProgressCode::FeedingToNozzle from switch-case since it is not used for this purpose at the moment.
Guðni Már Gilbert 2 năm trước cách đây
mục cha
commit
1c25041134
1 tập tin đã thay đổi với 4 bổ sung9 xóa
  1. 4 9
      Firmware/mmu2.cpp

+ 4 - 9
Firmware/mmu2.cpp

@@ -348,7 +348,10 @@ bool MMU2::load_filament_to_nozzle(uint8_t index) {
         // reset current position to whatever the planner thinks it is
         st_synchronize();
         plan_set_e_position(current_position[E_AXIS]);
-        
+
+        // Finish loading to the nozzle with finely tuned steps.
+        execute_extruder_sequence((const E_Step *)load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof (load_to_nozzle_sequence[0]));
+
         extruder = index;
         SetActiveExtruder(0);
 
@@ -647,11 +650,6 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
             st_synchronize();
             loadFilamentStarted = true;
             break;
-        case ProgressCode::FeedingToNozzle:
-            // prepare for the movement of the E-motor
-            st_synchronize();
-            // Nothing yet
-            break;
         default:
             // do nothing yet
             break;
@@ -685,9 +683,6 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
                 }
             }
             break;
-        case ProgressCode::FeedingToNozzle:
-            execute_extruder_sequence((const E_Step *)load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof (load_to_nozzle_sequence[0]));
-            break;
         default:
             // do nothing yet
             break;