Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Oct 22, 2024
1 parent 70d0aca commit b15e4b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modbus-rtu.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ static int _modbus_rtu_check_integrity(modbus_t *ctx, uint8_t *msg, const int ms
return -1;
}

/* Filter on the Modbus unit identifier (slave) in RTU mode to avoid useless
* CRC computing. */
/* Filter on the Modbus unit identifier (slave) in RTU mode */
if (slave != ctx->slave && slave != MODBUS_BROADCAST_ADDRESS) {
if (ctx->debug) {
printf("Request for slave %d ignored (not %d)\n", slave, ctx->slave);
Expand Down

0 comments on commit b15e4b0

Please sign in to comment.