Do not allow filament actions while an existing one is taking place

This commit is contained in:
Yuri D'Elia 2022-08-20 16:04:57 +02:00 committed by Guðni Már Gilbert
parent 170dddfd71
commit e3fd6a4902
1 changed files with 1 additions and 1 deletions

View File

@ -5212,7 +5212,7 @@ static void lcd_main_menu()
}
}
if ( ! ( printJobOngoing() || (lcd_commands_type != LcdCommands::Idle) || Stopped) ) {
if ( ! ( printJobOngoing() || (lcd_commands_type != LcdCommands::Idle) || loading_flag || Stopped ) ) {
if (MMU2::mmu2.Enabled()) {
if(!MMU2::mmu2.FindaDetectsFilament() && !fsensor.getFilamentPresent()) {
// The MMU 'Load filament' state machine will reject the command if any