From c491324e8937a40018dd9668f5d11f07a748bbe3 Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Mon, 21 Feb 2011 22:26:02 +0100 Subject: [PATCH] added support for G92 --- gcode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcode.c b/gcode.c index cd4e504..ce762e9 100644 --- a/gcode.c +++ b/gcode.c @@ -36,6 +36,7 @@ #define NEXT_ACTION_DEFAULT 0 #define NEXT_ACTION_DWELL 1 #define NEXT_ACTION_GO_HOME 2 +#define NEXT_ACTION_SET_COORDINATE_OFFSET 3 #define MOTION_MODE_SEEK 0 // G0 #define MOTION_MODE_LINEAR 1 // G1 @@ -234,7 +235,8 @@ uint8_t gc_execute_line(char *line) { // Perform any physical actions switch (next_action) { case NEXT_ACTION_GO_HOME: mc_go_home(); clear_vector(gc.position); break; - case NEXT_ACTION_DWELL: mc_dwell(trunc(p*1000)); break; + case NEXT_ACTION_DWELL: mc_dwell(trunc(p*1000)); break; + case NEXT_ACTION_SET_COORDINATE_OFFSET: break; // no action needed case NEXT_ACTION_DEFAULT: switch (gc.motion_mode) { case MOTION_MODE_CANCEL: break;