From 0b4993f3e929e69dfc0750df5b8fc145189a83d8 Mon Sep 17 00:00:00 2001 From: Jon Nordby Date: Mon, 1 Sep 2014 16:00:54 +0200 Subject: [PATCH] GCC: Can enter/leave HPGL mode --- src/core/path_gcc.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/core/path_gcc.c b/src/core/path_gcc.c index 06eb147..9ef22e1 100644 --- a/src/core/path_gcc.c +++ b/src/core/path_gcc.c @@ -69,10 +69,20 @@ void fab_write_gcc(struct fab_vars *v, char *output_file_name, // Note: Must be <80 bytes fprintf(output_file,"!m%dN%s", strlen(filename), filename); - /* + // TODO: set power,ppi, speed + + + // Enter HPGL vector mode + fprintf(output_file,"%%1B"); + + +/* current_z = 0; fprintf(output_file,"YP%d;\n",power); +*/ + + /* v->path->segment = v->path->last; while (1) { // @@ -123,6 +133,9 @@ void fab_write_gcc(struct fab_vars *v, char *output_file_name, */ + // Leave HPGL vector mode + fprintf(output_file,"%%1A"); + // Reset fprintf(output_file,"E");