Skip to content

Commit 1875745

Browse files
tombrazierLCh-77
authored andcommitted
🩹 LCD strings followup, fix warning (MarlinFirmware#24328)
1 parent a4d795e commit 1875745

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Marlin/src/lcd/menu/menu_x_twist.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,8 @@ void xatc_wizard_menu() {
9999
SUBMENU(MSG_MOVE_1MM, []{ _goto_manual_move_z( 1); });
100100
SUBMENU(MSG_MOVE_01MM, []{ _goto_manual_move_z( 0.1f); });
101101

102-
if ((FINE_MANUAL_MOVE) > 0.0f && (FINE_MANUAL_MOVE) < 0.1f) {
103-
// Determine digits needed right of decimal
104-
const uint8_t digs = !UNEAR_ZERO((FINE_MANUAL_MOVE) * 1000 - int((FINE_MANUAL_MOVE) * 1000)) ? 4 :
105-
!UNEAR_ZERO((FINE_MANUAL_MOVE) * 100 - int((FINE_MANUAL_MOVE) * 100)) ? 3 : 2;
102+
if ((FINE_MANUAL_MOVE) > 0.0f && (FINE_MANUAL_MOVE) < 0.1f)
106103
SUBMENU_f(F(STRINGIFY(FINE_MANUAL_MOVE)), MSG_MOVE_N_MM, []{ _goto_manual_move_z(float(FINE_MANUAL_MOVE)); });
107-
}
108104

109105
ACTION_ITEM(MSG_BUTTON_DONE, xatc_wizard_set_offset_and_go_to_next_point);
110106

0 commit comments

Comments
 (0)