Skip to content

Commit

Permalink
Do not allow filament actions while an existing one is taking place
Browse files Browse the repository at this point in the history
  • Loading branch information
wavexx authored and gudnimg committed Jul 25, 2023
1 parent 170dddf commit e3fd6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3fd6a4

Please sign in to comment.