Skip to content

Commit e56323f

Browse files
committed
Do not warn when using ping without supplying a PingResponse data structure
1 parent f9b1674 commit e56323f

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/Dynamixel.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,10 +1107,6 @@ bool Dynamixel::dxl_ping(const int id, PingResponse *status, const int ack)
11071107
status->firmware_version = dxl_read_byte(id, 2, ack);
11081108
}
11091109
}
1110-
else
1111-
{
1112-
std::cerr << "Warning! 'Advance Ping' instruction was successfull but cannot return status !" << std::endl;
1113-
}
11141110
}
11151111

11161112
return retcode;

src/HerkuleX.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,6 @@ bool HerkuleX::hkx_ping(const int id, PingResponse *status, const int ack)
783783
status->model_number = hkx_read_word(id, 0, REGISTER_ROM, ack);
784784
status->firmware_version = hkx_read_word(id, 2, REGISTER_ROM, ack);
785785
}
786-
else
787-
{
788-
std::cerr << "Warning! 'Advance Ping' instruction was successfull but cannot return status !" << std::endl;
789-
}
790786
}
791787

792788
return retcode;

0 commit comments

Comments
 (0)