Fix DELTA_CALIBRATION_MENU recursive call (#16656)

This commit is contained in:
Jason Smith
2020-01-25 22:02:06 -08:00
committed by Scott Lahteine
parent 838a420e27
commit 95d5a0c480
7 changed files with 26 additions and 18 deletions

View File

@@ -41,10 +41,14 @@
#endif
void _man_probe_pt(const xy_pos_t &xy) {
do_blocking_move_to_xy_z(xy, Z_CLEARANCE_BETWEEN_PROBES);
ui.synchronize();
move_menu_scale = _MAX(PROBE_MANUALLY_STEP, MIN_STEPS_PER_SEGMENT / float(DEFAULT_XYZ_STEPS_PER_UNIT));
ui.goto_screen(lcd_move_z);
if (!ui.wait_for_move) {
ui.wait_for_move = true;
do_blocking_move_to_xy_z(xy, Z_CLEARANCE_BETWEEN_PROBES);
ui.wait_for_move = false;
ui.synchronize();
move_menu_scale = _MAX(PROBE_MANUALLY_STEP, MIN_STEPS_PER_SEGMENT / float(DEFAULT_XYZ_STEPS_PER_UNIT));
ui.goto_screen(lcd_move_z);
}
}
#if ENABLED(DELTA_AUTO_CALIBRATION)