Skip to content

Commit b019a76

Browse files
committed
linuxcncrsh: fix typo in joint iteration.
1 parent 5281dc2 commit b019a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emc/usr_intf/emcrsh.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ static cmdResponseType getJointVelocity(connectionRecType &ctx)
23752375
} else {
23762376
std::string jl = "JOINT_VELOCITY";
23772377
for (int i = 0; i < emcStatus->motion.traj.joints; i++) {
2378-
jl += fmt::format(" {:f}", emcStatus->motion.joint[joint].velocity);
2378+
jl += fmt::format(" {:f}", emcStatus->motion.joint[i].velocity);
23792379
}
23802380
replynl(ctx, jl);
23812381
}

0 commit comments

Comments
 (0)