mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-28 06:21:31 +00:00
Fixed invalid addressing (overflow) of position_shift / software endstops
Signed-off-by: Jeff K
This commit is contained in:
parent
b6227932f5
commit
90c49f5a14
@ -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…
Reference in New Issue
Block a user