- corrected issues in the hpgl postprocessor file

This commit is contained in:
Marius Stanciu 2019-01-19 02:38:44 +02:00 committed by Marius S
parent 43f9055408
commit 51b96af190
1 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ class hpgl(FlatCAMPostProc):
return gcode
def startz_code(self, p):
return 'SP%d' % int(p.tool)
return ''
def lift_code(self, p):
gcode = 'PU;' + '\n'
@ -25,13 +25,13 @@ class hpgl(FlatCAMPostProc):
return gcode
def toolchange_code(self, p):
return ''
return 'SP%d;' % int(p.tool)
def up_to_zero_code(self, p):
return ''
def position_code(self, p):
return ('PA' + self.coordinate_format + ',' + self.coordinate_format) % \
return ('PA' + self.coordinate_format + ',' + self.coordinate_format + ';') % \
(p.coords_decimals, p.x, p.coords_decimals, p.y)
def rapid_code(self, p):