Skip to content

Commit

Permalink
RFS server fix for serial connections
Browse files Browse the repository at this point in the history
On Linux, the serial connection was not setup properly, which led to
weird errors in the RFS server. This fix disables any input processing
in the termios layer, thus fixing the problem. Thanks to Markus Korber
for reporting and fixing the issue.
  • Loading branch information
bogdanm committed Dec 17, 2011
1 parent a0ecdc1 commit e823c8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rfs_server_src/serial_posix.c
Expand Up @@ -112,6 +112,9 @@ int ser_setup( ser_handler id, u32 baud, int databits, int parity, int stopbits,
termdata.c_iflag &= ~( IXON | IXOFF | IXANY );
termdata.c_iflag |= IGNBRK;

// Disable input processing
termdata.c_iflag &= ~( INLCR | ICRNL | IGNCR );

// Raw input
termdata.c_lflag &= ~( ICANON | ECHO | ECHOE | ISIG );

Expand Down

0 comments on commit e823c8d

Please sign in to comment.