PFW-1522 Fix firmware getting stuck on ejecting
If slot is unknown, the printer will always get a rejected command error from the MMU. Change in memory: Flash: +4 bytes SRAM: 0 bytes
This commit is contained in:
parent
c7360055ae
commit
e6f05e7856
|
|
@ -3432,11 +3432,13 @@ static void mmu_M600_filament_change_screen(uint8_t eject_slot) {
|
||||||
MMU2::mmu2.clearPrinterButtonOperation();
|
MMU2::mmu2.clearPrinterButtonOperation();
|
||||||
|
|
||||||
if (btn == MMU2::Buttons::Eject) {
|
if (btn == MMU2::Buttons::Eject) {
|
||||||
MMU2::mmu2.eject_filament(eject_slot, true);
|
if (eject_slot != (uint8_t)MMU2::FILAMENT_UNKNOWN) {
|
||||||
// The MMU will raise FILAMENT_EJECTED screen, and ask the user to confirm
|
MMU2::mmu2.eject_filament(eject_slot, true);
|
||||||
// the operation is done. We must be careful to not raise FILAMENT_CHANGE
|
// The MMU will raise FILAMENT_EJECTED screen, and ask the user to confirm
|
||||||
// screen too quickly
|
// the operation is done. We must be careful to not raise FILAMENT_CHANGE
|
||||||
continue;
|
// screen too quickly
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (btn == MMU2::Buttons::Load)
|
else if (btn == MMU2::Buttons::Load)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue