Skip to content

Commit

Permalink
Exit Nozzle Change if filament is loaded
Browse files Browse the repository at this point in the history
Abort Nozzle change if fsensor is enabled and filament is present.
  • Loading branch information
sarusani committed Aug 23, 2024
1 parent 2f7715a commit 64d9f20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4406,6 +4406,13 @@ static void sheets_menu()

static void nozzle_change()
{
#ifdef FILAMENT_SENSOR
if (fsensor.isEnabled() && fsensor.getFilamentPresent()) {
lcd_show_fullscreen_message_and_wait_P(_T(MSG_UNLOAD_FILAMENT_REPEAT));
lcd_return_to_status();
return;
}
#endif //FILAMENT_SENSOR
lcd_commands_type = LcdCommands::NozzleCNG;
lcd_return_to_status();
}
Expand Down

0 comments on commit 64d9f20

Please sign in to comment.