♻️ String helper class (#24390)

This commit is contained in:
Scott Lahteine
2023-06-27 13:19:36 -05:00
committed by GitHub
parent 4a734e4de4
commit 574dd34c49
36 changed files with 955 additions and 598 deletions

View File

@@ -731,7 +731,7 @@ void MarlinUI::draw_status_message(const bool blink) {
static bool last_blink = false;
// Get the UTF8 character count of the string
uint8_t slen = utf8_strlen(status_message);
uint8_t slen = status_message.glyphs();
// If the string fits into the LCD, just print it and do not scroll it
if (slen <= LCD_WIDTH) {
@@ -773,7 +773,7 @@ void MarlinUI::draw_status_message(const bool blink) {
UNUSED(blink);
// Get the UTF8 character count of the string
uint8_t slen = utf8_strlen(status_message);
uint8_t slen = status_message.glyphs();
// Just print the string to the LCD
lcd_put_u8str_max(status_message, LCD_WIDTH);