Skip to content

Commit 5332ba5

Browse files
committed
bulk_read bug fix
1 parent 5897f56 commit 5332ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/master.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,9 @@ bool Master::bulkRead(const ParamForBulkReadInst_t &param_info, RecvInfoFromStat
13621362
tx_param[param_len++] = p_xel->length >> 0;
13631363
tx_param[param_len++] = p_xel->length >> 8;
13641364
}else if(protocol_ver_idx_ == 1){
1365+
tx_param[param_len++] = p_xel->length & 0xFF;
13651366
tx_param[param_len++] = p_xel->id;
13661367
tx_param[param_len++] = p_xel->addr & 0xFF;
1367-
tx_param[param_len++] = p_xel->length & 0xFF;
13681368
}
13691369
err = add_param_to_dxl_packet(&info_tx_packet_, tx_param, param_len);
13701370
if(err != DXL_LIB_OK){

0 commit comments

Comments
 (0)