Skip to content

Commit

Permalink
🐛 Fix Mesh Bed Leveling Z correction (MarlinFirmware#25122)
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode authored and Tracy Spiva committed May 25, 2023
1 parent 866b12f commit 5dcf8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class mesh_bed_leveling {
static float get_z_correction(const xy_pos_t &pos) {
const xy_int8_t ind = cell_indexes(pos);
const float x1 = index_to_xpos[ind.x], x2 = index_to_xpos[ind.x+1],
y1 = index_to_xpos[ind.y], y2 = index_to_xpos[ind.y+1],
y1 = index_to_ypos[ind.y], y2 = index_to_ypos[ind.y+1],
z1 = calc_z0(pos.x, x1, z_values[ind.x][ind.y ], x2, z_values[ind.x+1][ind.y ]),
z2 = calc_z0(pos.x, x1, z_values[ind.x][ind.y+1], x2, z_values[ind.x+1][ind.y+1]),
zf = calc_z0(pos.y, y1, z1, y2, z2);
Expand Down

0 comments on commit 5dcf8fd

Please sign in to comment.