From 51b96af1908c1322186ddcb4b2f285dc8a345e6f Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 19 Jan 2019 02:38:44 +0200 Subject: [PATCH] - corrected issues in the hpgl postprocessor file --- postprocessors/hpgl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postprocessors/hpgl.py b/postprocessors/hpgl.py index aed67b51..1834be7a 100644 --- a/postprocessors/hpgl.py +++ b/postprocessors/hpgl.py @@ -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):