GCC: Can enter/leave HPGL mode

master
Jon Nordby 2014-09-01 16:00:54 +02:00
rodzic ebef5be7fb
commit 0b4993f3e9
1 zmienionych plików z 14 dodań i 1 usunięć

Wyświetl plik

@ -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");