diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index dc96673c..d08c1154 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -78,6 +78,7 @@ #include #include "Dcodes.h" +#include "AutoDeplete.h" #ifdef SWSPI @@ -6920,6 +6921,10 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE)) } else { tmp_extruder = code_value(); + if (mmu_enabled && lcd_autoDepleteEnabled()) + { + tmp_extruder = ad_getAlternative(tmp_extruder); + } } st_synchronize(); snmm_filaments_used |= (1 << tmp_extruder); //for stop print