Browse Source

Fix DOGM status message scrolling (#20557)

Victor Oliveira 3 years ago
parent
commit
e6c15eee45
No account linked to committer's email address
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

+ 4
- 5
Marlin/src/lcd/dogm/status_screen_DOGM.cpp View File

@@ -892,6 +892,10 @@ void MarlinUI::draw_status_message(const bool blink) {
892 892
     }
893 893
     else {
894 894
       // String is longer than the available space
895
+      if (blink != last_blink) {
896
+        last_blink = blink;
897
+        advance_status_scroll();
898
+      }
895 899
 
896 900
       // Get a pointer to the next valid UTF8 character
897 901
       // and the string remaining length
@@ -911,11 +915,6 @@ void MarlinUI::draw_status_message(const bool blink) {
911 915
           }
912 916
         }
913 917
       }
914
-
915
-      if (last_blink != blink) {
916
-        last_blink = blink;
917
-        advance_status_scroll();
918
-      }
919 918
     }
920 919
 
921 920
   #else // !STATUS_MESSAGE_SCROLLING

Loading…
Cancel
Save