Skip to content

Commit 2d98bb3

Browse files
committed
Edit STEPS_PER_MM integer only
1 parent e3660bc commit 2d98bb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Marlin/src/lcd/menu/menu_advanced.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,14 @@ void menu_backlash();
567567
START_MENU();
568568
MENU_BACK(MSG_ADVANCED_SETTINGS);
569569

570-
#define EDIT_QSTEPS(Q) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float51, MSG_##Q##STEPS, &planner.settings.axis_steps_per_mm[_AXIS(Q)], 5, 9999, _planner_refresh_positioning)
570+
#define EDIT_QSTEPS(Q) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float5, MSG_##Q##STEPS, &planner.settings.axis_steps_per_mm[_AXIS(Q)], 5, 9999, _planner_refresh_positioning)
571571
EDIT_QSTEPS(A);
572572
EDIT_QSTEPS(B);
573573
EDIT_QSTEPS(C);
574574

575575
#if ENABLED(DISTINCT_E_FACTORS)
576-
#define EDIT_ESTEPS(N,E) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float51, MSG_E##N##STEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(E)], 5, 9999, _planner_refresh_e##E##_positioning)
577-
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float51, MSG_ESTEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(active_extruder)], 5, 9999, _planner_refresh_positioning);
576+
#define EDIT_ESTEPS(N,E) MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float5, MSG_E##N##STEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(E)], 5, 9999, _planner_refresh_e##E##_positioning)
577+
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float5, MSG_ESTEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(active_extruder)], 5, 9999, _planner_refresh_positioning);
578578
EDIT_ESTEPS(1,0);
579579
EDIT_ESTEPS(2,1);
580580
#if E_STEPPERS > 2
@@ -590,7 +590,7 @@ void menu_backlash();
590590
#endif // E_STEPPERS > 3
591591
#endif // E_STEPPERS > 2
592592
#elif E_STEPPERS
593-
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float51, MSG_ESTEPS, &planner.settings.axis_steps_per_mm[E_AXIS], 5, 9999, _planner_refresh_positioning);
593+
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float5, MSG_ESTEPS, &planner.settings.axis_steps_per_mm[E_AXIS], 5, 9999, _planner_refresh_positioning);
594594
#endif
595595

596596
END_MENU();

0 commit comments

Comments
 (0)