Use "+=" in plane rotation
This commit is contained in:
parent
2f3a410cb0
commit
d580a0d186
@ -2765,8 +2765,8 @@ inline void gcode_G28() {
|
||||
z_tmp = current_position[Z_AXIS],
|
||||
real_z = (float)st_get_position(Z_AXIS) / axis_steps_per_unit[Z_AXIS]; //get the real Z (since the auto bed leveling is already correcting the plane)
|
||||
|
||||
apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); //Apply the correction sending the probe offset
|
||||
current_position[Z_AXIS] = z_tmp - real_z + current_position[Z_AXIS]; //The difference is added to current position and sent to planner.
|
||||
apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); // Apply the correction sending the probe offset
|
||||
current_position[Z_AXIS] += z_tmp - real_z; // The difference is added to current position and sent to planner.
|
||||
sync_plan_position();
|
||||
}
|
||||
#endif // !DELTA
|
||||
|
Loading…
Reference in New Issue
Block a user