We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e20f4e commit f9d5233Copy full SHA for f9d5233
src/dynamixel/dynamixel.cpp
@@ -1059,6 +1059,11 @@ DxlError Dynamixel::SetFastSyncReadHandler(std::vector<uint8_t> id_arr)
1059
1060
DxlError Dynamixel::SetSyncReadHandler(std::vector<uint8_t> id_arr)
1061
{
1062
+ if (id_arr.size() == 0) {
1063
+ fprintf(stderr, "No Sync Read Item, not setting sync read handler\n");
1064
+ return DxlError::OK;
1065
+ }
1066
+
1067
// Try to set up fast sync read first
1068
if (use_fast_read_protocol_) {
1069
DxlError fast_result = SetFastSyncReadHandler(id_arr);
0 commit comments