Merge pull request #3544 from manianac/RCBugFix

Fixed Positional_Shift array overrun
This commit is contained in:
Scott Lahteine 2016-04-17 17:07:29 -07:00
commit daade35253

View File

@ -3598,13 +3598,14 @@ inline void gcode_G92() {
current_position[i] = v;
position_shift[i] += v - p; // Offset the coordinate space
update_software_endstops((AxisEnum)i);
if (i == E_AXIS)
plan_set_e_position(v);
else
else {
position_shift[i] += v - p; // Offset the coordinate space
update_software_endstops((AxisEnum)i);
didXYZ = true;
}
}
}
if (didXYZ) {