From a457d716a6013bcdc24c41dadaf5f57a80c785c1 Mon Sep 17 00:00:00 2001 From: "info@revskills.de" Date: Fri, 30 Aug 2024 16:36:58 +0200 Subject: [PATCH] Make sure that the filament type is updated on mmu_change as well --- src/marlin_stubs/pause/pause.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/marlin_stubs/pause/pause.cpp b/src/marlin_stubs/pause/pause.cpp index 80264f9c0f..ec707b3229 100644 --- a/src/marlin_stubs/pause/pause.cpp +++ b/src/marlin_stubs/pause/pause.cpp @@ -480,7 +480,6 @@ void Pause::loop_load_common(Response response, CommonLoadType load_type) { case CommonLoadType::autoload: // if filament is not present we want to break and not set loaded filament // we have already loaded the filament in gear, now just wait for temperature to rise - config_store().set_filament_type(settings.GetExtruder(), filament::get_type_to_load()); set(LoadPhases_t::wait_temp); handle_filament_removal(LoadPhases_t::check_filament_sensor_and_user_push__ask); break; @@ -495,8 +494,6 @@ void Pause::loop_load_common(Response response, CommonLoadType load_type) { break; } - config_store().set_filament_type(settings.GetExtruder(), filament::get_type_to_load()); - setPhase(PhasesLoadUnload::IsColor, 99); set(LoadPhases_t::ask_is_color_correct); break; @@ -516,6 +513,7 @@ void Pause::loop_load_common(Response response, CommonLoadType load_type) { set(LoadPhases_t::check_filament_sensor_and_user_push__ask); break; } + config_store().set_filament_type(settings.GetExtruder(), filament::get_type_to_load()); break; case LoadPhases_t::check_filament_sensor_and_user_push__ask: