Skip to content

Commit f24a388

Browse files
committed
Update MycobotBasic.cpp
1 parent 3d6c2c4 commit f24a388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Arduino/MycobotBasic/MycobotBasic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ bool MycobotBasic::isAllServoEnabled()
12071207

12081208
byte MycobotBasic::getServoData(int joint, byte data_id)
12091209
{
1210-
byte joint_number = joint - 1;
1210+
byte joint_number = joint;
12111211
Serial2.write(header);
12121212
Serial2.write(header);
12131213
Serial2.write(GET_SERVO_DATA_LEN);

0 commit comments

Comments
 (0)