From bba633101a54551917e58ca00f2d08bcc82c34b4 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Sun, 25 Nov 2012 22:02:33 -0700 Subject: [PATCH] G28/G30 post move bug fix. Altered file permissions. --- COPYING | 0 Makefile | 0 config.h | 0 eeprom.c | 0 eeprom.h | 0 gcode.c | 1 + gcode.h | 0 limits.c | 0 limits.h | 0 main.c | 0 motion_control.c | 0 motion_control.h | 0 nuts_bolts.c | 0 nuts_bolts.h | 0 planner.c | 0 planner.h | 0 print.c | 0 print.h | 0 protocol.c | 0 protocol.h | 0 readme.textile | 0 serial.c | 0 serial.h | 0 settings.h | 0 spindle_control.c | 0 spindle_control.h | 0 stepper.c | 0 stepper.h | 0 28 files changed, 1 insertion(+) mode change 100755 => 100644 COPYING mode change 100755 => 100644 Makefile mode change 100755 => 100644 config.h mode change 100755 => 100644 eeprom.c mode change 100755 => 100644 eeprom.h mode change 100755 => 100644 gcode.c mode change 100755 => 100644 gcode.h mode change 100755 => 100644 limits.c mode change 100755 => 100644 limits.h mode change 100755 => 100644 main.c mode change 100755 => 100644 motion_control.c mode change 100755 => 100644 motion_control.h mode change 100755 => 100644 nuts_bolts.c mode change 100755 => 100644 nuts_bolts.h mode change 100755 => 100644 planner.c mode change 100755 => 100644 planner.h mode change 100755 => 100644 print.c mode change 100755 => 100644 print.h mode change 100755 => 100644 protocol.c mode change 100755 => 100644 protocol.h mode change 100755 => 100644 readme.textile mode change 100755 => 100644 serial.c mode change 100755 => 100644 serial.h mode change 100755 => 100644 settings.h mode change 100755 => 100644 spindle_control.c mode change 100755 => 100644 spindle_control.h mode change 100755 => 100644 stepper.c mode change 100755 => 100644 stepper.h diff --git a/COPYING b/COPYING old mode 100755 new mode 100644 diff --git a/Makefile b/Makefile old mode 100755 new mode 100644 diff --git a/config.h b/config.h old mode 100755 new mode 100644 diff --git a/eeprom.c b/eeprom.c old mode 100755 new mode 100644 diff --git a/eeprom.h b/eeprom.h old mode 100755 new mode 100644 diff --git a/gcode.c b/gcode.c old mode 100755 new mode 100644 index 7c6d17d..c741fc2 --- a/gcode.c +++ b/gcode.c @@ -332,6 +332,7 @@ uint8_t gc_execute_line(char *line) if (non_modal_action == NON_MODAL_GO_HOME_1) { home_select = SETTING_INDEX_G30; } if (!settings_read_coord_data(home_select,coord_data)) { return(STATUS_SETTING_READ_FAIL); } mc_line(coord_data[X_AXIS], coord_data[Y_AXIS], coord_data[Z_AXIS], settings.default_seek_rate, false); + memcpy(gc.position, coord_data, sizeof(coord_data)); // gc.position[] = coord_data[]; axis_words = 0; // Axis words used. Lock out from motion modes by clearing flags. break; case NON_MODAL_SET_HOME_0: case NON_MODAL_SET_HOME_1: diff --git a/gcode.h b/gcode.h old mode 100755 new mode 100644 diff --git a/limits.c b/limits.c old mode 100755 new mode 100644 diff --git a/limits.h b/limits.h old mode 100755 new mode 100644 diff --git a/main.c b/main.c old mode 100755 new mode 100644 diff --git a/motion_control.c b/motion_control.c old mode 100755 new mode 100644 diff --git a/motion_control.h b/motion_control.h old mode 100755 new mode 100644 diff --git a/nuts_bolts.c b/nuts_bolts.c old mode 100755 new mode 100644 diff --git a/nuts_bolts.h b/nuts_bolts.h old mode 100755 new mode 100644 diff --git a/planner.c b/planner.c old mode 100755 new mode 100644 diff --git a/planner.h b/planner.h old mode 100755 new mode 100644 diff --git a/print.c b/print.c old mode 100755 new mode 100644 diff --git a/print.h b/print.h old mode 100755 new mode 100644 diff --git a/protocol.c b/protocol.c old mode 100755 new mode 100644 diff --git a/protocol.h b/protocol.h old mode 100755 new mode 100644 diff --git a/readme.textile b/readme.textile old mode 100755 new mode 100644 diff --git a/serial.c b/serial.c old mode 100755 new mode 100644 diff --git a/serial.h b/serial.h old mode 100755 new mode 100644 diff --git a/settings.h b/settings.h old mode 100755 new mode 100644 diff --git a/spindle_control.c b/spindle_control.c old mode 100755 new mode 100644 diff --git a/spindle_control.h b/spindle_control.h old mode 100755 new mode 100644 diff --git a/stepper.c b/stepper.c old mode 100755 new mode 100644 diff --git a/stepper.h b/stepper.h old mode 100755 new mode 100644