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

pull/1/head
Sonny Jeon 2011-11-11 13:36:42 -07:00
rodzic 169c859b9c
commit b5cc033150
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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