From 4ec75213ec0448d07ae46f87e25537df8ae0dc60 Mon Sep 17 00:00:00 2001 From: Jon Nordby Date: Thu, 4 Sep 2014 16:41:13 +0200 Subject: [PATCH] GCC: Fix laser being turned on when jogging to job start --- src/core/path_gcc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/path_gcc.c b/src/core/path_gcc.c index f0bce83..0529595 100644 --- a/src/core/path_gcc.c +++ b/src/core/path_gcc.c @@ -116,6 +116,11 @@ void fab_write_gcc(struct fab_vars *v, char *output_file_name, // Enter HPGL vector mode fprintf(output_file,"%%1B"); + // Select a pen. + // If this is not done, the first paths will be made with laser on + // - regardless if they are actually pen-up commands + fprintf(output_file,";SP2;"); + current_z = 0; // fprintf(output_file,"YP%d;\n",power); v->path->segment = v->path->last;