Update mmu.cpp
Fix runout if filament is unknown
This commit is contained in:
parent
e184dcf1b9
commit
34f43d7389
@ -383,8 +383,9 @@ void mmu_loop(void)
|
|||||||
//printf_P(PSTR("Eact: %d\n"), int(e_active()));
|
//printf_P(PSTR("Eact: %d\n"), int(e_active()));
|
||||||
if (!mmu_finda && CHECK_FSENSOR && fsensor_enabled) {
|
if (!mmu_finda && CHECK_FSENSOR && fsensor_enabled) {
|
||||||
fsensor_checkpoint_print();
|
fsensor_checkpoint_print();
|
||||||
ad_markDepleted(mmu_extruder);
|
if (mmu_extruder != MMU_FILAMENT_UNKNOWN) // Can't deplete unknown extruder.
|
||||||
if (lcd_autoDepleteEnabled() && !ad_allDepleted())
|
ad_markDepleted(mmu_extruder);
|
||||||
|
if (lcd_autoDepleteEnabled() && !ad_allDepleted() && mmu_extruder != MMU_FILAMENT_UNKNOWN) // Can't auto if F=?
|
||||||
{
|
{
|
||||||
enquecommand_front_P(PSTR("M600 AUTO")); //save print and run M600 command
|
enquecommand_front_P(PSTR("M600 AUTO")); //save print and run M600 command
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user