Skip to content

Commit

Permalink
Minor fix in -open. Use local file descriptor variable instead of ear…
Browse files Browse the repository at this point in the history
…lier local descriptor variable in read loop.
  • Loading branch information
armadsen committed Dec 14, 2013
1 parent d134d67 commit e4ef007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ORSSerialPort.m
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ - (void)open;
{
fd_set localReadFDSet;
FD_ZERO(&localReadFDSet);
FD_SET(descriptor, &localReadFDSet);
FD_SET(localPortFD, &localReadFDSet);

timeout.tv_sec = 0;
timeout.tv_usec = 100000; // Check to see if port closed every 100ms
Expand Down

0 comments on commit e4ef007

Please sign in to comment.