Replies: 1 comment
-
@aatoof1 I think you could send a PR and propose this change, then it gets assigned and reviewed by relevant people. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In function
mbc_validate_wr_response
line230
, the return code isENXIO
without the minus sign, is this a bug?zephyr/subsys/modbus/modbus_client.c
Lines 224 to 234 in 4677920
In the rest of the code if a positive return code is returned, this indicates a Modbus exception code. See:
zephyr/subsys/modbus/modbus_client.c
Lines 46 to 52 in 4677920
Also in other parts of the code when there is a mismatch between request and response values (i.e function code, unit id) the error code
-EIO
is returned, with this case being the only exception. See:zephyr/subsys/modbus/modbus_client.c
Lines 38 to 44 in 4677920
Should
ENXIO
be changed to-EIO
to be consistent with the rest of the Modbus code?Thanks
Beta Was this translation helpful? Give feedback.
All reactions