From 1c25041134f93e4b59f0ea08b07f76c133f2ab56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 21 May 2022 12:09:17 +0000 Subject: [PATCH] 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. --- Firmware/mmu2.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Firmware/mmu2.cpp b/Firmware/mmu2.cpp index b7d2a306c..60147290c 100644 --- a/Firmware/mmu2.cpp +++ b/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;