Browse Source

Continuous filename scrolling (#13609)

Robby Candra 6 years ago
parent
commit
81c2c3ec11
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      Marlin/src/lcd/ultralcd.cpp

+ 6
- 3
Marlin/src/lcd/ultralcd.cpp View File

809
     #if HAS_LCD_MENU && ENABLED(SCROLL_LONG_FILENAMES)
809
     #if HAS_LCD_MENU && ENABLED(SCROLL_LONG_FILENAMES)
810
       // If scrolling of long file names is enabled and we are in the sd card menu,
810
       // If scrolling of long file names is enabled and we are in the sd card menu,
811
       // cause a refresh to occur until all the text has scrolled into view.
811
       // cause a refresh to occur until all the text has scrolled into view.
812
-      if (currentScreen == menu_sdcard && filename_scroll_pos < filename_scroll_max && !lcd_status_update_delay--) {
813
-        lcd_status_update_delay = 6;
812
+      if (currentScreen == menu_sdcard && !lcd_status_update_delay--) {
813
+        lcd_status_update_delay = 4;
814
+        if (++filename_scroll_pos > filename_scroll_max) {
815
+          filename_scroll_pos = 0;
816
+          lcd_status_update_delay = 12;
817
+        }
814
         refresh(LCDVIEW_REDRAW_NOW);
818
         refresh(LCDVIEW_REDRAW_NOW);
815
-        filename_scroll_pos++;
816
         #if LCD_TIMEOUT_TO_STATUS
819
         #if LCD_TIMEOUT_TO_STATUS
817
           return_to_status_ms = ms + LCD_TIMEOUT_TO_STATUS;
820
           return_to_status_ms = ms + LCD_TIMEOUT_TO_STATUS;
818
         #endif
821
         #endif

Loading…
Cancel
Save