Bläddra i källkod

Fix extra string substitution bug (#19351)

ellensp 4 år sedan
förälder
incheckning
7c7e663911
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4
    1
      Marlin/src/lcd/lcdprint.cpp

+ 4
- 1
Marlin/src/lcd/lcdprint.cpp Visa fil

@@ -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);

Laddar…
Avbryt
Spara