Commit 1038e01f authored by Turnkey's avatar Turnkey

Merge pull request #5 from ant-t/master

Fix error where layer power is ignored after first layer.
parents ad9862b0 76e84433
...@@ -857,7 +857,7 @@ class Gcode_tools(inkex.Effect): ...@@ -857,7 +857,7 @@ class Gcode_tools(inkex.Effect):
#G01 : Move with the laser turned on to a new point #G01 : Move with the laser turned on to a new point
elif s[1] == 'line': elif s[1] == 'line':
if not firstGCode: #Include the ppm values for the first G01 command in the set. if not firstGCode: #Include the ppm values for the first G01 command in the set.
gcode += "G01 " + self.make_args(si[0]) + "S%.2f " % laserPower + "%s " % cutFeed + "%s" % ppmValue + "\n" gcode += "G01 " + self.make_args(si[0]) + " S%.2f " % laserPower + "%s " % cutFeed + "%s" % ppmValue + "\n"
firstGCode = True firstGCode = True
else: else:
gcode += "G01 " + self.make_args(si[0]) + "\n" gcode += "G01 " + self.make_args(si[0]) + "\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment