gcode_arcs: Use is operator for Null comparison (#1989)

Signed-off-by: Piotr Usewicz <piotr@layer22.com>
This commit is contained in:
Piotr Usewicz 2019-09-23 22:49:52 +02:00 committed by KevinOConnor
parent 6b2b8f31ee
commit a92bdf1d54
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class ArcSupport:
asF = float(params.get("F", -1)) asF = float(params.get("F", -1))
# --------- health checks of code ----------- # --------- 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") raise self.gcode.error("g2/g3: Coords missing")
elif asR == 0 and asI == 0 and asJ==0: elif asR == 0 and asI == 0 and asJ==0: