瀏覽代碼

Fix LCD Z Move character LCD display line (#16772)

ellensp 5 年之前
父節點
當前提交
7d4fa9d504
No account linked to committer's email address
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      Marlin/src/lcd/menu/menu_motion.cpp

+ 5
- 1
Marlin/src/lcd/menu/menu_motion.cpp 查看文件

@@ -250,7 +250,11 @@ void _menu_move_distance(const AxisEnum axis, const screenFunc_t func, const int
250 250
     if (axis == Z_AXIS && (SHORT_MANUAL_Z_MOVE) > 0.0f && (SHORT_MANUAL_Z_MOVE) < 0.1f) {
251 251
       extern const char NUL_STR[];
252 252
       SUBMENU_P(NUL_STR, []{ _goto_manual_move(float(SHORT_MANUAL_Z_MOVE)); });
253
-      MENU_ITEM_ADDON_START(0);
253
+      MENU_ITEM_ADDON_START(0
254
+        #if HAS_CHARACTER_LCD
255
+          + 1
256
+        #endif
257
+      );
254 258
         char tmp[20], numstr[10];
255 259
         // Determine digits needed right of decimal
256 260
         const uint8_t digs = !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) * 1000 - int((SHORT_MANUAL_Z_MOVE) * 1000)) ? 4 :

Loading…
取消
儲存