mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-12 08:38:37 +00:00
🚸 MarlinUI edit steps/mm to 2 decimal places (#25144)
This commit is contained in:
parent
32e8627510
commit
4f7df32b77
4 changed files with 202 additions and 184 deletions
Marlin/src/lcd/menu
|
@ -639,11 +639,11 @@ void menu_advanced_steps_per_mm() {
|
|||
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
||||
|
||||
LOOP_NUM_AXES(a)
|
||||
EDIT_ITEM_FAST_N(float61, a, MSG_N_STEPS, &planner.settings.axis_steps_per_mm[a], 5, 9999, []{ planner.refresh_positioning(); });
|
||||
EDIT_ITEM_FAST_N(float72, a, MSG_N_STEPS, &planner.settings.axis_steps_per_mm[a], 5, 9999, []{ planner.refresh_positioning(); });
|
||||
|
||||
#if ENABLED(DISTINCT_E_FACTORS)
|
||||
LOOP_L_N(n, E_STEPPERS)
|
||||
EDIT_ITEM_FAST_N(float61, n, MSG_EN_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(n)], 5, 9999, []{
|
||||
EDIT_ITEM_FAST_N(float72, n, MSG_EN_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(n)], 5, 9999, []{
|
||||
const uint8_t e = MenuItemBase::itemIndex;
|
||||
if (e == active_extruder)
|
||||
planner.refresh_positioning();
|
||||
|
@ -651,7 +651,7 @@ void menu_advanced_steps_per_mm() {
|
|||
planner.mm_per_step[E_AXIS_N(e)] = 1.0f / planner.settings.axis_steps_per_mm[E_AXIS_N(e)];
|
||||
});
|
||||
#elif E_STEPPERS
|
||||
EDIT_ITEM_FAST_N(float61, E_AXIS, MSG_N_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS], 5, 9999, []{ planner.refresh_positioning(); });
|
||||
EDIT_ITEM_FAST_N(float72, E_AXIS, MSG_N_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS], 5, 9999, []{ planner.refresh_positioning(); });
|
||||
#endif
|
||||
|
||||
END_MENU();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue