From 4444b155f156f37801c73e14986b789cec238278 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Fri, 1 Feb 2019 21:04:06 +0100 Subject: [PATCH] M600: prevention of blob; massage changed when autoload is active --- Firmware/Marlin_main.cpp | 5 +++++ Firmware/ultralcd.cpp | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index ec82a105..0b20192c 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -3081,6 +3081,11 @@ static void gcode_M600(bool automatic, float x_position, float y_position, float sprintf_P(cmd, PSTR("M220 S%i"), feedmultiplyBckp); enquecommand(cmd); +#ifdef IR_SENSOR + //this will set fsensor_watch_autoload to correct value and prevent possible M701 gcode enqueuing when M600 is finished + fsensor_check_autoload(); +#endif //IR_SENSOR + lcd_setstatuspgm(_T(WELCOME_MSG)); custom_message_type = CUSTOM_MSG_TYPE_STATUS; } diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 0db1f58c..ae07f144 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -2442,9 +2442,10 @@ void lcd_wait_interact() { #else lcd_puts_P(_i("Insert filament"));////MSG_INSERT_FILAMENT c=20 r=0 #endif - lcd_set_cursor(0, 2); - lcd_puts_P(_i("and press the knob"));////MSG_PRESS c=20 r=0 - + if (!fsensor_autoload_enabled) { + lcd_set_cursor(0, 2); + lcd_puts_P(_i("and press the knob"));////MSG_PRESS c=20 r=0 + } }