mirror of
https://github.com/grblHAL/core.git
synced 2026-08-17 16:41:45 +08:00
Merge pull request #984 from stevenrwood/fix/g54-rotation-second-axis-double-offset
gcode: fix ROTATION_ENABLE 2nd-axis offset double-applied on rotated G54 moves
This commit is contained in:
@@ -3083,7 +3083,7 @@ status_code_t gc_execute_block (char *block)
|
||||
axis_words.mask |= r_around.mask;
|
||||
} else {
|
||||
idx_0 = ffs(r_around.mask) - 1;
|
||||
bit_false(r_around.mask, bit(idx));
|
||||
bit_false(r_around.mask, bit(idx_0)); // clear the FIRST rotation axis to find the second (was bit(idx) - a stale loop var, which mis-set idx_1 -> the second axis's WCS offset got applied twice -> false soft-limit on rotated G54 XY moves)
|
||||
idx_1 = ffs(r_around.mask) - 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user