Skip to content

Commit 7a38f78

Browse files
robert-burgerGitHub Enterprise
authored andcommitted
Merge pull request #29 from common/feat/stm32
fix: error code on unexpected coe answer
2 parents 36287fe + d610e86 commit 7a38f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ int ec_coe_sdo_read(ec_t *pec, osal_uint16_t slave, osal_uint16_t index,
441441
} else {
442442
ec_coe_print_msg(pec, 1, "COE_SDO_READ", slave, "got unexpected mailbox message",
443443
(osal_uint8_t *)(p_entry->data), 6u + read_buf->mbx_hdr.length);
444-
//ret = EC_ERROR_MAILBOX_READ;
444+
ret = EC_ERROR_MAILBOX_READ;
445445
}
446446

447447
ec_mbx_return_free_recv_buffer(pec, slave, p_entry);

0 commit comments

Comments
 (0)