|
@@ -830,21 +830,20 @@ static void lcd_implementation_status_screen()
|
|
|
// If heating in progress, set flag
|
|
|
if (heating_status != 0) { custom_message = true; }
|
|
|
|
|
|
+ if (IS_SD_PRINTING) {
|
|
|
+ if (strcmp(longFilenameOLD, card.longFilename) != 0)
|
|
|
+ {
|
|
|
+ memset(longFilenameOLD, '\0', strlen(longFilenameOLD));
|
|
|
+ sprintf_P(longFilenameOLD, PSTR("%s"), card.longFilename);
|
|
|
+ scrollstuff = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// If printing from SD, show what we are printing
|
|
|
- if (IS_SD_PRINTING)
|
|
|
+ if (IS_SD_PRINTING && !custom_message)
|
|
|
{
|
|
|
-
|
|
|
- if(strcmp(longFilenameOLD, card.longFilename) != 0)
|
|
|
- {
|
|
|
- memset(longFilenameOLD,'\0',strlen(longFilenameOLD));
|
|
|
- sprintf_P(longFilenameOLD, PSTR("%s"), card.longFilename);
|
|
|
- scrollstuff = 0;
|
|
|
- }
|
|
|
- if (!custom_message) {
|
|
|
-
|
|
|
if (strlen(card.longFilename) > LCD_WIDTH)
|
|
|
{
|
|
|
-
|
|
|
int inters = 0;
|
|
|
int gh = scrollstuff;
|
|
|
while (((gh - scrollstuff) < LCD_WIDTH) && (inters == 0))
|
|
@@ -873,9 +872,6 @@ static void lcd_implementation_status_screen()
|
|
|
{
|
|
|
lcd.print(longFilenameOLD);
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
// If not, check for other special events
|
|
|
else
|