File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Address Size Data Name
20
20
104 1 Neopixel_Head_Left_Mode
21
21
105 2 Neopixel_Head_Left_Control_Time
22
22
107 1 Neopixel_Head_Left_Led_Count
23
+ 108 2 Dummy_1
23
24
110 1 Neopixel_Head_Right_Red
24
25
111 1 Neopixel_Head_Right_Green
25
26
112 1 Neopixel_Head_Right_Blue
Original file line number Diff line number Diff line change @@ -864,6 +864,12 @@ DxlError Dynamixel::WriteMultiDxlData()
864
864
865
865
bool Dynamixel::checkReadType ()
866
866
{
867
+ if (read_data_list_.size () == 1 ){
868
+ if (CheckIndirectReadAvailable (read_data_list_.at (0 ).comm_id ) != DxlError::OK) {
869
+ return BULK;
870
+ }
871
+ }
872
+
867
873
for (size_t dxl_index = 1 ; dxl_index < read_data_list_.size (); dxl_index++) {
868
874
// Check if Indirect Data Read address and size are different
869
875
uint16_t indirect_addr[2 ]; // [i-1], [i]
@@ -910,6 +916,12 @@ bool Dynamixel::checkReadType()
910
916
911
917
bool Dynamixel::checkWriteType ()
912
918
{
919
+ if (write_data_list_.size () == 1 ){
920
+ if (CheckIndirectWriteAvailable (write_data_list_.at (0 ).comm_id ) != DxlError::OK) {
921
+ return BULK;
922
+ }
923
+ }
924
+
913
925
for (size_t dxl_index = 1 ; dxl_index < write_data_list_.size (); dxl_index++) {
914
926
// Check if Indirect Data Write address and size are different
915
927
uint16_t indirect_addr[2 ]; // [i-1], [i]
You can’t perform that action at this time.
0 commit comments