Skip to content

Commit 12a54a3

Browse files
committed
Clean-up code
1 parent 59bb964 commit 12a54a3

File tree

6 files changed

+4
-19
lines changed

6 files changed

+4
-19
lines changed

src/Makefile.inc.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ CONFIG_COUNTER=m
181181
CONFIG_ENCODER_RATIO=m
182182
CONFIG_STEPGEN=m
183183
CONFIG_WOU=m
184-
CONFIG_WOU_SIM=m
185184
CONFIG_FREQGEN=m
186185
CONFIG_PWMGEN=m
187186
CONFIG_SIGGEN=m

src/emc/motion/control.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -705,19 +705,8 @@ static void process_probe_inputs(void)
705705
}
706706
}
707707

708-
static int update_current_pos = 0;
709708
static void handle_special_cmd(void)
710709
{
711-
if (*emcmot_hal_data->req_cmd_sync == 1) {
712-
DP("req_cmd_sync(%d)\n", *emcmot_hal_data->req_cmd_sync);
713-
emcmotStatus->sync_pos_cmd = 1;
714-
update_current_pos = 1;
715-
printf("ERROR: handle_special_cmd(): req_cmd_sync(1)\n");
716-
assert(0);
717-
} else {
718-
emcmotStatus->sync_pos_cmd = 0;
719-
}
720-
721710
/* must not be homing */
722711
if (emcmotStatus->homing_active) {
723712
// let usb_homing.c control the "update_pos_req" and "rcmd_seq_num_ack"

src/emc/motion/mot_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ typedef struct {
110110
hal_bit_t *trigger_cond;
111111
hal_u32_t *trigger_level;
112112
hal_bit_t *trigger_result;
113-
hal_bit_t *req_cmd_sync;
113+
// hal_bit_t *req_cmd_sync;
114114
hal_bit_t *usb_busy;
115115
hal_bit_t *machine_is_moving;
116116
hal_bit_t *rtp_running;

src/emc/motion/motion.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ static int init_hal_io(void)
330330
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->mpg_scale_x1), mot_comp_id, "motion.mpg-scale-x1")) < 0) goto error;
331331
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->mpg_scale_x10), mot_comp_id, "motion.mpg-scale-x10")) < 0) goto error;
332332
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->mpg_scale_x100), mot_comp_id, "motion.mpg-scale-x100")) < 0) goto error;
333-
if ((retval = hal_pin_bit_newf(HAL_IO, &(emcmot_hal_data->req_cmd_sync), mot_comp_id, "motion.req-cmd-syn")) < 0) goto error;
334-
*emcmot_hal_data->req_cmd_sync = 0;
333+
// if ((retval = hal_pin_bit_newf(HAL_IO, &(emcmot_hal_data->req_cmd_sync), mot_comp_id, "motion.req-cmd-syn")) < 0) goto error;
334+
// *emcmot_hal_data->req_cmd_sync = 0;
335335
*emcmot_hal_data->mpg_scale_x1 = 0;
336336
*emcmot_hal_data->mpg_scale_x10 = 0;
337337
*emcmot_hal_data->mpg_scale_x100 = 0;

src/emc/motion/motion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ typedef struct emcmot_status_t {
686686
int update_current_pos_flag;
687687
uint32_t special_cmd;
688688
uint32_t probe_cmd;
689-
int sync_pos_cmd;
689+
// int sync_pos_cmd;
690690
int sync_risc_pos;
691691
uint32_t update_pos_ack; /* for RCMD_FSM inside RISC */
692692
uint32_t update_pos_req; /* for RCMD_FSM inside RISC */

src/emc/motion/usb_homing.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ void do_homing_sequence(void)
161161
}
162162
/* ok to start the sequence, start at zero */
163163
home_sequence = 0;
164-
// /* reset gantry joint pointers */
165-
// master_gantry_joint = 0;
166-
// slave_gantry_joint = 0;
167164
/* tell the world we're on the job */
168165
emcmotStatus->homing_active = 1;
169166
/* and drop into next state */

0 commit comments

Comments
 (0)