diff options
author | maze <tehmaze@users.noreply.github.com> | 2022-12-14 18:06:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 12:06:11 -0500 |
commit | 347dfa58eab8286ad2e71efe9e11260ca35b61c6 (patch) | |
tree | 461f68028cbc90cb6a5796ac78a8c6b12e00f5e9 /klippy | |
parent | 69f76b3b66ba72d6a42f93a829304b1a802dbf02 (diff) | |
download | kutter-347dfa58eab8286ad2e71efe9e11260ca35b61c6.tar.gz kutter-347dfa58eab8286ad2e71efe9e11260ca35b61c6.tar.xz kutter-347dfa58eab8286ad2e71efe9e11260ca35b61c6.zip |
gcode_arcs: Allow either one of I, J, K to be default-zero on G2/G3 (#5939)
Signed-off-by: Wijnand Modderman-Lenstra <maze@pyth0n.org>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/gcode_arcs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/gcode_arcs.py b/klippy/extras/gcode_arcs.py index 7707cd66..76c165dd 100644 --- a/klippy/extras/gcode_arcs.py +++ b/klippy/extras/gcode_arcs.py @@ -84,7 +84,7 @@ class ArcSupport: asPlanar = [ gcmd.get_float(a, 0.) for i,a in enumerate('JK') ] axes = (Y_AXIS, Z_AXIS, X_AXIS) - if not asPlanar[0] or not asPlanar[1]: + if not (asPlanar[0] or asPlanar[1]): raise gcmd.error("G2/G3 requires IJ, IK or JK parameters") asE = gcmd.get_float("E", None) |