Skip to content

Commit a9b88ce

Browse files
committed
refactor: Comment out conditional checks for read/write types in SetMultiDxlRead and SetMultiDxlWrite functions
1 parent 38dcf64 commit a9b88ce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/dynamixel/dynamixel.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,7 @@ DxlError Dynamixel::SetDxlReadItems(
304304

305305
DxlError Dynamixel::SetMultiDxlRead()
306306
{
307-
if (read_data_list_.size() < 2) {
308-
read_type_ = SYNC;
309-
} else {
310307
read_type_ = checkReadType();
311-
}
312308

313309
fprintf(stderr, "Dynamixel Read Type : %s\n", read_type_ ? "bulk read" : "sync read");
314310
if (read_type_ == SYNC) {
@@ -413,11 +409,7 @@ DxlError Dynamixel::SetDxlWriteItems(
413409
}
414410
DxlError Dynamixel::SetMultiDxlWrite()
415411
{
416-
if (write_data_list_.size() < 2) {
417-
write_type_ = SYNC;
418-
} else {
419412
write_type_ = checkWriteType();
420-
}
421413

422414
fprintf(stderr, "Dynamixel Write Type : %s\n", write_type_ ? "bulk write" : "sync write");
423415
if (write_type_ == SYNC) {

0 commit comments

Comments
 (0)