From 64d9f201daf15735b9361cc69ad38f441c6ef429 Mon Sep 17 00:00:00 2001 From: sarusani Date: Tue, 20 Aug 2024 14:58:59 +0200 Subject: [PATCH] Exit Nozzle Change if filament is loaded Abort Nozzle change if fsensor is enabled and filament is present. --- Firmware/ultralcd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index bf6027adaf..249390747d 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -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(); }