Corrected the ABL grid option

G29 E was not retracting the probe on the last probe point when used with ABL grid. Corrected.
This commit is contained in:
msutas 2015-01-12 11:07:46 +02:00
parent e0beb98fd3
commit 3a5a6f42fb

View file

@ -1759,7 +1759,7 @@ void process_commands()
if ((yProbe==FRONT_PROBE_BED_POSITION) && (xCount==0)) if ((yProbe==FRONT_PROBE_BED_POSITION) && (xCount==0))
{ {
measured_z = probe_pt(xProbe, yProbe, z_before,1); measured_z = probe_pt(xProbe, yProbe, z_before,1);
} else if ((yProbe==BACK_PROBE_BED_POSITION) && (xCount == AUTO_BED_LEVELING_GRID_POINTS-1)) } else if ((yProbe==FRONT_PROBE_BED_POSITION + (yGridSpacing * (AUTO_BED_LEVELING_GRID_POINTS-1))) && (xCount == AUTO_BED_LEVELING_GRID_POINTS-1))
{ {
measured_z = probe_pt(xProbe, yProbe, z_before,3); measured_z = probe_pt(xProbe, yProbe, z_before,3);
} else { } else {