From d12b24758a2b1d8cc392294d499bdd0940768ff8 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 24 Nov 2014 18:50:11 -0800 Subject: [PATCH] Clear LCD to welcome_msg if not printing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The welcome message is more appropriate than “resuming print” if nothing is printing. --- Marlin/Marlin_main.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index d3895b83ea..1b8b2f979e 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1385,7 +1385,7 @@ void process_commands() st_synchronize(); codenum += millis(); // keep track of when we started waiting previous_millis_cmd = millis(); - while(millis() < codenum ){ + while(millis() < codenum) { manage_heater(); manage_inactivity(); lcd_update(); @@ -1413,7 +1413,6 @@ void process_commands() plan_bed_level_matrix.set_to_identity(); //Reset the plane ("erase" all leveling data) #endif //ENABLE_AUTO_BED_LEVELING - saved_feedrate = feedrate; saved_feedmultiply = feedmultiply; feedmultiply = 100; @@ -1874,9 +1873,9 @@ void process_commands() if (hasS) codenum = code_value() * 1000; // seconds to wait if (!hasP && !hasS && *src != '\0') { - while (*src == ' ') ++src; starpos = strchr(src, '*'); if (starpos != NULL) *(starpos) = '\0'; + while (*src == ' ') ++src; lcd_setstatus(src); } else { LCD_MESSAGEPGM(MSG_USERWAIT); @@ -1887,7 +1886,7 @@ void process_commands() previous_millis_cmd = millis(); if (codenum > 0){ codenum += millis(); // keep track of when we started waiting - while(millis() < codenum && !lcd_clicked()){ + while(millis() < codenum && !lcd_clicked()){ manage_heater(); manage_inactivity(); lcd_update(); @@ -1900,7 +1899,10 @@ void process_commands() lcd_update(); } } - LCD_MESSAGEPGM(MSG_RESUMING); + if (IS_SD_PRINTING) + LCD_MESSAGEPGM(MSG_RESUMING); + else + LCD_MESSAGEPGM(WELCOME_MSG); } break; #endif