🐛 Invert start and end angles for G02 commands (#4580)

This commit is contained in:
Kestin Goforth authored and GitHub committed 2022-07-18 16:22:41 +01:00
1 parent a2e9aefe9c
commit 936af41d0e
1 file changed
+1 -1
+1 -1
View File
@@ -547,7 +547,7 @@ class gcode:
startAngle = math.atan2(oldPos.y - centerArc.y, oldPos.x - centerArc.x)
endAngle = math.atan2(pos.y - centerArc.y, pos.x - centerArc.x)
if gcode == "G2":
if gcode in ("G2", "G02"):
startAngle, endAngle = endAngle, startAngle
if startAngle < 0:
startAngle += math.pi * 2