Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Enable the receiver in the UART termios (options). #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sbp_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ int piksi_open( const char *port, int baud )
return PIKSI_ERROR_IO;
}
options.c_cflag &= ~HUPCL;
options.c_lflag &= ~ICANON;
options.c_lflag &= ~ICANON;
options.c_cflag |= CREAD; // enable the receiver
options.c_cc[VTIME] = 2;
options.c_cc[VMIN] = 0;
if( tcsetattr( fd, TCSANOW, &options ) < 0 )
Expand Down