Skip to content

Commit

Permalink
fix: reverted entry desc name calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-burger committed Nov 29, 2024
1 parent 60fc7e7 commit dd0675a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ int ec_coe_sdo_entry_desc_read(ec_t *pec, osal_uint16_t slave, osal_uint16_t ind
desc->data_type = read_buf->data_type;
desc->bit_length = read_buf->bit_length;
desc->obj_access = read_buf->obj_access;
desc->data_len = min(CANOPEN_MAXDATA, read_buf->mbx_hdr.length - 2u - 10u);
desc->data_len = min(CANOPEN_MAXDATA, read_buf->mbx_hdr.length - 6u - 10u);

(void)memcpy(desc->data, read_buf->desc_data, desc->data_len);
ret = EC_OK;
Expand Down

0 comments on commit dd0675a

Please sign in to comment.