Change filament number in T command to alternative if depleted and lcd_autoDepleteEnabled().
This commit is contained in:
parent
d89c03a0f1
commit
c080b899c3
@ -78,6 +78,7 @@
|
|||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|
||||||
#include "Dcodes.h"
|
#include "Dcodes.h"
|
||||||
|
#include "AutoDeplete.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWSPI
|
#ifdef SWSPI
|
||||||
@ -6920,6 +6921,10 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tmp_extruder = code_value();
|
tmp_extruder = code_value();
|
||||||
|
if (mmu_enabled && lcd_autoDepleteEnabled())
|
||||||
|
{
|
||||||
|
tmp_extruder = ad_getAlternative(tmp_extruder);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
snmm_filaments_used |= (1 << tmp_extruder); //for stop print
|
snmm_filaments_used |= (1 << tmp_extruder); //for stop print
|
||||||
|
Loading…
Reference in New Issue
Block a user