Просмотр исходного кода

Use right calibration point. This change is only formal, as both original and new point have same coordinates.

Marek Bel 6 лет назад
Родитель
Сommit
9bd4d580d7
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      Firmware/Marlin_main.cpp
  2. 1 0
      Firmware/mesh_bed_calibration.h

+ 1 - 1
Firmware/Marlin_main.cpp

@@ -3099,7 +3099,7 @@ void process_commands()
       			  } 
               // 1st mesh bed leveling measurement point, corrected.
               world2machine_initialize();
-              world2machine(pgm_read_float(bed_ref_points), pgm_read_float(bed_ref_points+1), destination[X_AXIS], destination[Y_AXIS]);
+              world2machine(pgm_read_float(bed_ref_points_4), pgm_read_float(bed_ref_points_4+1), destination[X_AXIS], destination[Y_AXIS]);
               world2machine_reset();
               if (destination[Y_AXIS] < Y_MIN_POS)
                   destination[Y_AXIS] = Y_MIN_POS;

+ 1 - 0
Firmware/mesh_bed_calibration.h

@@ -5,6 +5,7 @@
 // The world coordinates match the machine coordinates only in case, when the machine
 // is built properly, the end stops are at the correct positions and the axes are perpendicular.
 extern const float bed_ref_points[] PROGMEM;
+extern const float bed_ref_points_4[] PROGMEM;
 
 extern const float bed_skew_angle_mild;
 extern const float bed_skew_angle_extreme;