Merge pull request #3544 from manianac/RCBugFix
Fixed Positional_Shift array overrun
This commit is contained in:
commit
daade35253
1 changed files with 5 additions and 4 deletions
|
@ -3598,15 +3598,16 @@ inline void gcode_G92() {
|
||||||
|
|
||||||
current_position[i] = v;
|
current_position[i] = v;
|
||||||
|
|
||||||
|
if (i == E_AXIS)
|
||||||
|
plan_set_e_position(v);
|
||||||
|
else {
|
||||||
position_shift[i] += v - p; // Offset the coordinate space
|
position_shift[i] += v - p; // Offset the coordinate space
|
||||||
update_software_endstops((AxisEnum)i);
|
update_software_endstops((AxisEnum)i);
|
||||||
|
|
||||||
if (i == E_AXIS)
|
|
||||||
plan_set_e_position(v);
|
|
||||||
else
|
|
||||||
didXYZ = true;
|
didXYZ = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (didXYZ) {
|
if (didXYZ) {
|
||||||
#if ENABLED(DELTA) || ENABLED(SCARA)
|
#if ENABLED(DELTA) || ENABLED(SCARA)
|
||||||
sync_plan_position_delta();
|
sync_plan_position_delta();
|
||||||
|
|
Reference in a new issue