From 8ef87d76ef46379586f8248b1e61b0232f02d346 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 20 Apr 2020 10:55:14 +0300 Subject: [PATCH] MK2.x: move away from endstops after lcd_selfcheck_pulleys() (#2617) * Removed duplicate #defines cleaned up display routine * Change to raise_z_above() * Better display handling * Ditch charswitch, show ... for measuring * Pull in changes from #5 * Fix printf()s * revert feedrates * typo * MK2.x: move away from endstops after lcd_selfcheck_pulleys() amend * Use absolute coordinates Co-authored-by: vintagepc <53943260+vintagepc@users.noreply.github.com> --- Firmware/ultralcd.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index c44e3c37..469a9ce1 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -7705,8 +7705,8 @@ bool lcd_selftest() //homeaxis(X_AXIS); //homeaxis(Y_AXIS); - current_position[X_AXIS] += pgm_read_float(bed_ref_points_4); - current_position[Y_AXIS] += pgm_read_float(bed_ref_points_4+1); + current_position[X_AXIS] = pgm_read_float(bed_ref_points_4); + current_position[Y_AXIS] = pgm_read_float(bed_ref_points_4+1); #ifdef TMC2130 //current_position[X_AXIS] += 0; current_position[Y_AXIS] += 4; @@ -8099,6 +8099,9 @@ static bool lcd_selfcheck_pulleys(int axis) ((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING) == 1)) { endstop_triggered = true; if (current_position_init - 1 <= current_position[axis] && current_position_init + 1 >= current_position[axis]) { + current_position[axis] += 10; + plan_buffer_line_curposXYZE(manual_feedrate[0] / 60, active_extruder); + st_synchronize(); return(true); } else {