Browse Source

Fix build

espr14 3 years ago
parent
commit
21d6f970ef
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Firmware/xyzcal.cpp

+ 2 - 3
Firmware/xyzcal.cpp

@@ -955,7 +955,6 @@ bool xyzcal_scan_and_process(void){
 		y = round_to_i16(yf);
 		xyzcal_lineXYZ_to(x, y, z, 200, 0);
 		ret = true;
-		}
 	}
 
 	/// wipe buffer
@@ -969,8 +968,8 @@ bool xyzcal_find_bed_induction_sensor_point_xy(void){
 
 	DBG(_n("xyzcal_find_bed_induction_sensor_point_xy x=%ld y=%ld z=%ld\n"), count_position[X_AXIS], count_position[Y_AXIS], count_position[Z_AXIS]);
 	st_synchronize();
-	const pos_i16_t x = _X;
-	const pos_i16_t y = _Y;
+	pos_i16_t x = _X;
+	pos_i16_t y = _Y;
 	const pos_i16_t z = _Z;
 	///< magic constant, lowers min_z after searchZ to obtain more dense data in scan
 	const pos_i16_t lower_z = 72;