Skip to content

Commit d51b7ae

Browse files
committed
src/modbus.c: _modbus_receive_msg(): if "ctx->backend->select" failed, report it as such (not as generic "select()")
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 064d497 commit d51b7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ int _modbus_receive_msg(modbus_t *ctx, uint8_t *msg, msg_type_t msg_type)
421421
while (length_to_read != 0) {
422422
rc = ctx->backend->select(ctx, &rset, p_tv, length_to_read);
423423
if (rc == -1) {
424-
_error_print(ctx, "select");
424+
_error_print(ctx, "ctx->backend->select");
425425
if (ctx->error_recovery & MODBUS_ERROR_RECOVERY_LINK) {
426426
#ifdef _WIN32
427427
wsa_err = WSAGetLastError();

0 commit comments

Comments
 (0)