gcode_arcs: Use is operator for Null comparison (#1989)
Signed-off-by: Piotr Usewicz <piotr@layer22.com>
This commit is contained in:
parent
6b2b8f31ee
commit
a92bdf1d54
|
@ -44,7 +44,7 @@ class ArcSupport:
|
|||
asF = float(params.get("F", -1))
|
||||
|
||||
# --------- health checks of code -----------
|
||||
if (asX == None or asY == None):
|
||||
if (asX is None or asY is None):
|
||||
raise self.gcode.error("g2/g3: Coords missing")
|
||||
|
||||
elif asR == 0 and asI == 0 and asJ==0:
|
||||
|
|
Loading…
Reference in New Issue