Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
fix: forgot some parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Sep 26, 2017
1 parent ee0409d commit 2954e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uart/uart_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ bool uart_send(const serial_port sp, const byte_t* pbtTx, const size_t szTxLen)
while (szPos < szTxLen) {
// Reset file descriptor
FD_ZERO(&rfds);
FD_SET((spu->fd, &rfds);
FD_SET(spu->fd, &rfds);
tv = timeout;
res = select((spu->fd+1, NULL, &rfds, NULL, &tv);
res = select(spu->fd + 1, NULL, &rfds, NULL, &tv);

// Write error
if (res < 0) {
Expand Down

0 comments on commit 2954e1d

Please sign in to comment.