Fixed invalid addressing (overflow) of position_shift / software endstops
Signed-off-by: Jeff K
This commit is contained in:
parent
b6227932f5
commit
90c49f5a14
1 changed files with 5 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue