Skip to content

Commit ded942a

Browse files
committed
🐛 Fix expand_u8str_P string substitution
Fixes #26424
1 parent bf61e52 commit ded942a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Marlin/src/lcd/language/language_en.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ namespace LanguageNarrow_en {
352352
LSTR MSG_LCD_ON = _UxGT("On");
353353
LSTR MSG_LCD_OFF = _UxGT("Off");
354354
LSTR MSG_PID_AUTOTUNE = _UxGT("PID Autotune");
355-
LSTR MSG_PID_AUTOTUNE_E = _UxGT("PID Autotune *");
355+
LSTR MSG_PID_AUTOTUNE_E = _UxGT("Autotune * PID");
356356
LSTR MSG_PID_CYCLE = _UxGT("PID Cycles");
357357
LSTR MSG_PID_AUTOTUNE_DONE = _UxGT("PID tuning done");
358358
LSTR MSG_PID_AUTOTUNE_FAILED = _UxGT("Autotune failed!");

Marlin/src/lcd/lcdprint.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ lcd_uint_t expand_u8str_P(char * const outstr, PGM_P const ptpl, const int8_t in
6868
else {
6969
PGM_P const b = ind == -2 ? GET_TEXT(MSG_CHAMBER) : GET_TEXT(MSG_BED);
7070
strncpy_P(o, b, n);
71-
n -= utf8_strlen_P(b);
71+
n -= utf8_strlen(o);
7272
o += strlen(o);
7373
}
7474
if (n > 0) {

0 commit comments

Comments
 (0)