Browse Source

Merge pull request #3544 from manianac/RCBugFix

Fixed Positional_Shift array overrun
pull/1/head
Scott Lahteine 9 years ago
parent
commit
daade35253
  1. 7
      Marlin/Marlin_main.cpp

7
Marlin/Marlin_main.cpp

@ -3598,15 +3598,16 @@ inline void gcode_G92() {
current_position[i] = v;
if (i == E_AXIS)
plan_set_e_position(v);
else {
position_shift[i] += v - p; // Offset the coordinate space
update_software_endstops((AxisEnum)i);
if (i == E_AXIS)
plan_set_e_position(v);
else
didXYZ = true;
}
}
}
if (didXYZ) {
#if ENABLED(DELTA) || ENABLED(SCARA)
sync_plan_position_delta();

Loading…
Cancel
Save