Skip to content

Commit

Permalink
Fix DOGM status message scrolling (MarlinFirmware#20557)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and zillarob committed Feb 25, 2021
1 parent 76f43e5 commit d2d9540
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Marlin/src/lcd/dogm/status_screen_DOGM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,10 @@ void MarlinUI::draw_status_message(const bool blink) {
}
else {
// String is longer than the available space
if (blink != last_blink) {
last_blink = blink;
advance_status_scroll();
}

// Get a pointer to the next valid UTF8 character
// and the string remaining length
Expand All @@ -902,11 +906,6 @@ void MarlinUI::draw_status_message(const bool blink) {
}
}
}

if (last_blink != blink) {
last_blink = blink;
advance_status_scroll();
}
}

#else // !STATUS_MESSAGE_SCROLLING
Expand Down

0 comments on commit d2d9540

Please sign in to comment.