Skip to content

Commit

Permalink
NMBS_ERROR_INVALID_TCP_MBAP on invalid transaction ID
Browse files Browse the repository at this point in the history
  • Loading branch information
debevv committed Jun 26, 2022
1 parent 037de71 commit 10b9a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanomodbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static nmbs_error recv_res_header(nmbs_t* nmbs) {

if (nmbs->platform.transport == NMBS_TRANSPORT_TCP) {
if (nmbs->msg.transaction_id != req_transaction_id)
return NMBS_ERROR_INVALID_RESPONSE;
return NMBS_ERROR_INVALID_TCP_MBAP;
}

if (nmbs->msg.unit_id != req_unit_id)
Expand Down

0 comments on commit 10b9a0c

Please sign in to comment.