|
@@ -88,16 +88,20 @@ void probe_offset_wizard_menu() {
|
88
|
88
|
SUBMENU(MSG_MOVE_01MM, []{ _goto_manual_move_z( 0.1f); });
|
89
|
89
|
|
90
|
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
|
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
|
107
|
ACTION_ITEM(MSG_BUTTON_DONE, []{
|