Browse Source

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

ellensp 5 years ago
parent
commit
7d4fa9d504
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/lcd/menu/menu_motion.cpp

+ 5
- 1
Marlin/src/lcd/menu/menu_motion.cpp View File

250
     if (axis == Z_AXIS && (SHORT_MANUAL_Z_MOVE) > 0.0f && (SHORT_MANUAL_Z_MOVE) < 0.1f) {
250
     if (axis == Z_AXIS && (SHORT_MANUAL_Z_MOVE) > 0.0f && (SHORT_MANUAL_Z_MOVE) < 0.1f) {
251
       extern const char NUL_STR[];
251
       extern const char NUL_STR[];
252
       SUBMENU_P(NUL_STR, []{ _goto_manual_move(float(SHORT_MANUAL_Z_MOVE)); });
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
         char tmp[20], numstr[10];
258
         char tmp[20], numstr[10];
255
         // Determine digits needed right of decimal
259
         // Determine digits needed right of decimal
256
         const uint8_t digs = !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) * 1000 - int((SHORT_MANUAL_Z_MOVE) * 1000)) ? 4 :
260
         const uint8_t digs = !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) * 1000 - int((SHORT_MANUAL_Z_MOVE) * 1000)) ? 4 :

Loading…
Cancel
Save