Skip to content

Commit 20546d0

Browse files
fsabbatini89tkx
andauthored
2.9 (#2990)
* Fix error joint limits zeroing variables before using * Fix error joint limits zeroing variables before using --------- Co-authored-by: tkx <tkx@tkx>
1 parent 434d4dd commit 20546d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/emc/motion/control.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,11 @@ static void get_pos_cmds(long period)
14711471
for (joint_num = 0; joint_num < ALL_JOINTS; joint_num++) {
14721472
/* point to joint data */
14731473
joint = &joints[joint_num];
1474+
1475+
/* Zero values */
1476+
joint_limit[joint_num][0] = 0;
1477+
joint_limit[joint_num][1] = 0;
1478+
14741479
/* skip inactive or unhomed axes */
14751480
if ((!GET_JOINT_ACTIVE_FLAG(joint)) || (!get_homed(joint_num))) {
14761481
continue;

0 commit comments

Comments
 (0)