Skip to content

Commit a66d85c

Browse files
🐛 Fix delta calibrate manual move scale (#22430)
1 parent 27f5e64 commit a66d85c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Marlin/src/lcd/menu/menu_delta_calibrate.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "menu_item.h"
3232
#include "../../module/delta.h"
3333
#include "../../module/motion.h"
34+
#include "../../module/planner.h"
3435

3536
#if HAS_LEVELING
3637
#include "../../feature/bedlevel/bedlevel.h"
@@ -46,7 +47,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
4647
do_blocking_move_to_xy_z(xy, Z_CLEARANCE_BETWEEN_PROBES);
4748
ui.wait_for_move = false;
4849
ui.synchronize();
49-
ui.manual_move.menu_scale = _MAX(PROBE_MANUALLY_STEP, MIN_STEPS_PER_SEGMENT / float(DEFAULT_XYZ_STEPS_PER_UNIT));
50+
ui.manual_move.menu_scale = _MAX(PROBE_MANUALLY_STEP, MIN_STEPS_PER_SEGMENT / planner.settings.axis_steps_per_mm[0]); // Use first axis as for delta XYZ should always match
5051
ui.goto_screen(lcd_move_z);
5152
}
5253
}

0 commit comments

Comments
 (0)