From b5cc0331507510b1121f27f56076efd38a0108d4 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Fri, 11 Nov 2011 13:36:42 -0700 Subject: [PATCH] Corrected clearing of target and position variable for the go home routine. Thanks Jens! --- gcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcode.c b/gcode.c index 4b50f06..7fb5b30 100644 --- a/gcode.c +++ b/gcode.c @@ -211,7 +211,7 @@ 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_GO_HOME: mc_go_home(); clear_vector(target); break; case NEXT_ACTION_DWELL: mc_dwell(p); break; case NEXT_ACTION_SET_COORDINATE_OFFSET: mc_set_current_position(target[X_AXIS], target[Y_AXIS], target[Z_AXIS]);