Corrected clearing of target and position variable for the go home routine. Thanks Jens!

This commit is contained in:
Sonny Jeon 2011-11-11 13:36:42 -07:00
parent 169c859b9c
commit b5cc033150

View File

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