瀏覽代碼

Update Probe Offset Wizard for Color UI (#19742)

Victor Oliveira 4 年之前
父節點
當前提交
f74b5a6b9b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 13 行新增9 行删除
  1. 13
    9
      Marlin/src/lcd/menu/menu_probe_offset.cpp

+ 13
- 9
Marlin/src/lcd/menu/menu_probe_offset.cpp 查看文件

88
   SUBMENU(MSG_MOVE_01MM, []{ _goto_manual_move_z( 0.1f); });
88
   SUBMENU(MSG_MOVE_01MM, []{ _goto_manual_move_z( 0.1f); });
89
 
89
 
90
   if ((SHORT_MANUAL_Z_MOVE) > 0.0f && (SHORT_MANUAL_Z_MOVE) < 0.1f) {
90
   if ((SHORT_MANUAL_Z_MOVE) > 0.0f && (SHORT_MANUAL_Z_MOVE) < 0.1f) {
91
-    extern const char NUL_STR[];
92
-    SUBMENU_P(NUL_STR, []{ _goto_manual_move_z(float(SHORT_MANUAL_Z_MOVE)); });
93
-    MENU_ITEM_ADDON_START(0 + ENABLED(HAS_MARLINUI_HD44780));
94
-      char tmp[20], numstr[10];
95
-      // Determine digits needed right of decimal
96
-      const uint8_t digs = !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) * 1000 - int((SHORT_MANUAL_Z_MOVE) * 1000)) ? 4 :
97
-                           !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) *  100 - int((SHORT_MANUAL_Z_MOVE) *  100)) ? 3 : 2;
98
-      sprintf_P(tmp, GET_TEXT(MSG_MOVE_Z_DIST), dtostrf(SHORT_MANUAL_Z_MOVE, 1, digs, numstr));
91
+    char tmp[20], numstr[10];
92
+    // Determine digits needed right of decimal
93
+    const uint8_t digs = !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) * 1000 - int((SHORT_MANUAL_Z_MOVE) * 1000)) ? 4 :
94
+                          !UNEAR_ZERO((SHORT_MANUAL_Z_MOVE) *  100 - int((SHORT_MANUAL_Z_MOVE) *  100)) ? 3 : 2;
95
+    sprintf_P(tmp, GET_TEXT(MSG_MOVE_Z_DIST), dtostrf(SHORT_MANUAL_Z_MOVE, 1, digs, numstr));
96
+    #if DISABLED(HAS_GRAPHICAL_TFT)
97
+      extern const char NUL_STR[];
98
+      SUBMENU_P(NUL_STR, []{ _goto_manual_move_z(float(SHORT_MANUAL_Z_MOVE)); });
99
+      MENU_ITEM_ADDON_START(0 + ENABLED(HAS_MARLINUI_HD44780));
99
       lcd_put_u8str(tmp);
100
       lcd_put_u8str(tmp);
100
-    MENU_ITEM_ADDON_END();
101
+      MENU_ITEM_ADDON_END();
102
+    #else
103
+      SUBMENU_P(tmp, []{ _goto_manual_move_z(float(SHORT_MANUAL_Z_MOVE)); });
104
+    #endif
101
   }
105
   }
102
 
106
 
103
   ACTION_ITEM(MSG_BUTTON_DONE, []{
107
   ACTION_ITEM(MSG_BUTTON_DONE, []{

Loading…
取消
儲存