mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 02:35:31 +00:00
Fix circle arc condition (#20322)
This commit is contained in:
parent
7bf04d1526
commit
2878876064
@ -87,7 +87,7 @@ void plan_arc(
|
||||
#endif
|
||||
|
||||
// Do a full circle if angular rotation is near 0 and the target is current position
|
||||
if ((!angular_travel || NEAR_ZERO(angular_travel)) && NEAR(current_position[p_axis], cart[p_axis]) && NEAR(current_position[q_axis], cart[q_axis])) {
|
||||
if (!angular_travel || (NEAR_ZERO(angular_travel) && NEAR(current_position[p_axis], cart[p_axis]) && NEAR(current_position[q_axis], cart[q_axis]))) {
|
||||
// Preserve direction for circles
|
||||
angular_travel = clockwise ? -RADIANS(360) : RADIANS(360);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user