Skip to content

Commit

Permalink
Oops fix OR on RS485 settings (1c5d969)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Oct 26, 2017
1 parent 1c5d969 commit 91a1d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modbus-rtu.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ int modbus_rtu_set_serial_mode(modbus_t *ctx, int mode)
return -1;
}
// Set
rs485conf.flags = SER_RS485_ENABLED;
rs485conf.flags |= SER_RS485_ENABLED;
if (ioctl(ctx->s, TIOCSRS485, &rs485conf) < 0) {
return -1;
}
Expand Down

0 comments on commit 91a1d74

Please sign in to comment.