From 2846d67701f5de9646179075e07bb7647788e301 Mon Sep 17 00:00:00 2001 From: Robert Burger Date: Tue, 10 Sep 2024 06:52:22 +0200 Subject: [PATCH] Update soe.c wrong sm len generation in SoE case, fixes #24 --- src/soe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soe.c b/src/soe.c index b07a094..0509172 100644 --- a/src/soe.c +++ b/src/soe.c @@ -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; } } }