Cooleronstop is bool, not float!

parent 630ab808
Pipeline #35 skipped
......@@ -496,7 +496,7 @@ class Gcode_tools(inkex.Effect):
self.OptionParser.add_option("", "--dpi", action="store", type="int", dest="dpi", default="270", help="set DPI for inkscape export")
self.OptionParser.add_option("", "--invert", action="store", type="inkbool", dest="invert", default=True, help="swap to negative colors")
self.OptionParser.add_option("", "--cooler", action="store", type="float", dest="cooler", default="0.0", help="set cooler temperature. 0 to disable")
self.OptionParser.add_option("", "--cooleronstop", action="store", type="float", dest="cooleronstop", default=False, help="continue to cool down when finished")
self.OptionParser.add_option("", "--cooleronstop", action="store", type="inkbool", dest="cooleronstop", default=False, help="continue to cool down when finished")
def parse_curve(self, path):
# if self.options.Xscale!=self.options.Yscale:
......@@ -818,7 +818,7 @@ class Gcode_tools(inkex.Effect):
gcode += ("M5 \n");
gcode += ';End of Raster Image '+str(curve['id'])+'\n\n'
if float(self.options.cooler) > 0.0 and bool(self.options.coolerstop):
if float(self.options.cooler) > 0.0 and bool(self.options.cooleronstop):
gcode += 'M140 C'+str(self.options.cooler)+' ; continue to cool down laser\n'
return gcode
......
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