- some small changes in preprocessors

This commit is contained in:
Marius Stanciu 2020-02-28 01:12:39 +02:00 committed by Marius
parent 84570bf6fe
commit 69607816d0
4 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
=================================================
28.02.2020
- some small changes in preprocessors
25.02.2020
- fixed bug in Gerber parser: it tried to calculate a len() for a single element and not a list - a Gerber generated by Eagle exhibited this

View File

@ -9,7 +9,7 @@
from FlatCAMPostProc import *
class Marlin_laser_use_FAN_pin(FlatCAMPostProc):
class Marlin_laser_FAN_pin(FlatCAMPostProc):
include_header = True
coordinate_format = "%.*f"
@ -107,7 +107,7 @@ class Marlin_laser_use_FAN_pin(FlatCAMPostProc):
def spindle_code(self, p):
if p.spindlespeed:
return '%s S%s' % ('M106 ', str(p.spindlespeed))
return 'M106 S%s' % str(p.spindlespeed)
else:
return 'M106'
@ -116,5 +116,5 @@ class Marlin_laser_use_FAN_pin(FlatCAMPostProc):
def spindle_stop_code(self, p):
gcode = 'M400\n'
gcode += 'M107'
gcode += 'M106 S0'
return gcode

View File

@ -9,7 +9,7 @@
from FlatCAMPostProc import *
class Marlin_laser_use_Spindle_pin(FlatCAMPostProc):
class Marlin_laser_Spindle_pin(FlatCAMPostProc):
include_header = True
coordinate_format = "%.*f"

View File

@ -9,7 +9,7 @@
from FlatCAMPostProc import *
class Toolchange_manual(FlatCAMPostProc):
class Toolchange_Manual(FlatCAMPostProc):
include_header = True
coordinate_format = "%.*f"