Skip to content

Commit

Permalink
Update soe.c
Browse files Browse the repository at this point in the history
wrong sm len generation in SoE case, fixes #24
  • Loading branch information
robert-burger authored Sep 10, 2024
1 parent b0f3126 commit 2846d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/soe.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ int ec_soe_generate_mapping(ec_t *pec, osal_uint16_t slave) {
slave, mdt_sm, mdt_bits, (mdt_bits + 7u) / 8u);

if (slv->sm_ch > mdt_sm) {
slv->sm[mdt_sm].len = (mdt_bits + 8u) / 8u;
slv->sm[mdt_sm].len = (mdt_bits + 7u) / 8u;
}
}
}
Expand Down

0 comments on commit 2846d67

Please sign in to comment.