From: Michael G. <gi...@gi...> - 2009-08-24 11:54:30
|
Fix preloading free tp on coord->free switch to avoid ferror Signed-off-by: Michael Geszkiewicz <mi...@wp...> http://git.linuxcnc.org/?p=emc2.git;a=commitdiff;h=c8716de --- src/emc/motion/control.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emc/motion/control.c b/src/emc/motion/control.c index 7f4168d..a6cdd83 100644 --- a/src/emc/motion/control.c +++ b/src/emc/motion/control.c @@ -891,8 +891,8 @@ static void set_operating_mode(void) for (joint_num = 0; joint_num < num_joints; joint_num++) { /* point to joint data */ joint = &joints[joint_num]; - /* set joint planner pos cmd to current location */ - joint->free_tp.pos_cmd = joint->pos_cmd; + /* set joint planner curr_pos to current location */ + joint->free_tp.curr_pos = joint->pos_cmd; /* but it can stay disabled until a move is required */ joint->free_tp.enable = 0; } |