From 62875f2e954130146f4eb2146856681857ac36b4 Mon Sep 17 00:00:00 2001 From: Laurentiu Date: Fri, 22 Feb 2019 14:35:48 +0200 Subject: [PATCH] MESH_MEAS_NUM_X_POINTS constant correction to MESH_MEAS_NUM_Y_POINTS --- Firmware/mesh_bed_calibration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/mesh_bed_calibration.cpp b/Firmware/mesh_bed_calibration.cpp index 2813945c..ec814f05 100644 --- a/Firmware/mesh_bed_calibration.cpp +++ b/Firmware/mesh_bed_calibration.cpp @@ -2937,7 +2937,7 @@ bool scan_bed_induction_points(int8_t verbosity_level) uint8_t iy = mesh_point / MESH_MEAS_NUM_X_POINTS; if (iy & 1) ix = (MESH_MEAS_NUM_X_POINTS - 1) - ix; float bedX = BED_X(ix, MESH_MEAS_NUM_X_POINTS); - float bedY = BED_Y(iy, MESH_MEAS_NUM_X_POINTS); + float bedY = BED_Y(iy, MESH_MEAS_NUM_Y_POINTS); current_position[X_AXIS] = vec_x[0] * bedX + vec_y[0] * bedY + cntr[0]; current_position[Y_AXIS] = vec_x[1] * bedX + vec_y[1] * bedY + cntr[1]; // The calibration points are very close to the min Y.