Skip to content

Commit

Permalink
fix regression with G33 P1 (aka G29 P0); closes issue #54
Browse files Browse the repository at this point in the history
  • Loading branch information
aegean-odyssey committed Jan 26, 2021
1 parent 5b5d27e commit ce6fa96
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions marlin_changes/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7504,11 +7504,9 @@ bool my_calculate_convergence(float * z_at_pt, uint8_t p, uint8_t t)

switch (p) {
case 0:
return false; // forced end
break;
case 1:
LOOP_XYZ(axis) e_delta[axis] = +Z4(CEN);
return false; // forced end
break;
case 2:
if (t) {
Expand Down Expand Up @@ -7551,7 +7549,7 @@ bool my_calculate_convergence(float * z_at_pt, uint8_t p, uint8_t t)
LOOP_XYZ(axis) delta_endstop_adj[axis] += e_delta[axis];
delta_radius += r_delta;
LOOP_XYZ(axis) delta_tower_angle_trim[axis] += t_delta[axis];
return true;
return (p < 2);
}

__attribute__((noinline))
Expand Down Expand Up @@ -7700,7 +7698,7 @@ void gcode_G33()
COPY(a_old, delta_tower_angle_trim);
}

if (! my_calculate_convergence(z_at_pt, probe_points, towers_set))
if (my_calculate_convergence(z_at_pt, probe_points, towers_set))
test_precision = 0.0; // force end
}
else if (zero_std_dev >= test_precision) {
Expand Down

0 comments on commit ce6fa96

Please sign in to comment.