浏览代码

Fix extra string substitution bug (#19351)

ellensp 4 年前
父节点
当前提交
7c7e663911
没有帐户链接到提交者的电子邮件
共有 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);

正在加载...
取消
保存