Skip to content

Commit

Permalink
Merge pull request #741 from cainbit/fix_uart_setnonblock
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Mar 7, 2022
2 parents 452be45 + ace0d21 commit 3e8cda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UARTController.cpp
Expand Up @@ -400,7 +400,7 @@ bool CUARTController::setRaw()
#if defined(__APPLE__)
int CUARTController::setNonblock(bool nonblock)
{
int flag = ::fcntl(m_fd, F_GETFD, 0);
int flag = ::fcntl(m_fd, F_GETFL, 0);

if (nonblock)
flag |= O_NONBLOCK;
Expand Down

0 comments on commit 3e8cda2

Please sign in to comment.