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

Commit 2954e1d

Browse files
committed
fix: forgot some parentheses
1 parent ee0409d commit 2954e1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uart/uart_posix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ bool uart_send(const serial_port sp, const byte_t* pbtTx, const size_t szTxLen)
227227
while (szPos < szTxLen) {
228228
// Reset file descriptor
229229
FD_ZERO(&rfds);
230-
FD_SET((spu->fd, &rfds);
230+
FD_SET(spu->fd, &rfds);
231231
tv = timeout;
232-
res = select((spu->fd+1, NULL, &rfds, NULL, &tv);
232+
res = select(spu->fd + 1, NULL, &rfds, NULL, &tv);
233233

234234
// Write error
235235
if (res < 0) {

0 commit comments

Comments
 (0)