Преглед на файлове

Fix extra string substitution bug (#19351)

ellensp преди 4 години
родител
ревизия
7c7e663911
No account linked to committer's email address
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4
    1
      Marlin/src/lcd/lcdprint.cpp

+ 4
- 1
Marlin/src/lcd/lcdprint.cpp Целия файл

@@ -57,7 +57,10 @@ lcd_uint_t lcd_put_u8str_ind_P(PGM_P const pstr, const int8_t ind, PGM_P const i
57 57
         PGM_P const b = ind == -2 ? GET_TEXT(MSG_CHAMBER) : GET_TEXT(MSG_BED);
58 58
         n -= lcd_put_u8str_max_P(b, n * (MENU_FONT_WIDTH)) / (MENU_FONT_WIDTH);
59 59
       }
60
-      if (n) n -= lcd_put_u8str_max_P((PGM_P)p, n * (MENU_FONT_WIDTH)) / (MENU_FONT_WIDTH);
60
+      if (n) {
61
+        n -= lcd_put_u8str_max_P((PGM_P)p, n * (MENU_FONT_WIDTH)) / (MENU_FONT_WIDTH);
62
+        break;
63
+      }
61 64
     }
62 65
     else if (ch == '$' && inStr) {
63 66
       n -= lcd_put_u8str_max_P(inStr, n * (MENU_FONT_WIDTH)) / (MENU_FONT_WIDTH);

Loading…
Отказ
Запис