From 465ffff162ab268d721ef69a2d66680727ed455f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 3 Feb 2020 17:40:08 +0100 Subject: [PATCH] Gerber plots: Add initial G01 command to the header, to ensure linear interpolation mode. To avoid issues, an interpolation mode must be set before first D01 command. --- common/plotters/GERBER_plotter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index abaeba6c47..f4b210a419 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -234,6 +234,10 @@ bool GERBER_PLOTTER::StartPlot() // Be sure the usual dark polarity is selected: fputs( "%LPD*%\n", outputFile ); + // Set initial interpolation mode: always G01 (linear): + fputs( "G01*\n", outputFile ); + + // Set aperture list starting point: fputs( "G04 APERTURE LIST*\n", outputFile ); return true;