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 W4tel-BiDi committed Apr 5, 2021
1 parent 4dc2720 commit dc3a42b
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 @@ -892,6 +892,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 @@ -911,11 +915,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 dc3a42b

Please sign in to comment.