1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

RFS server fix for serial connections

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.
This commit is contained in:
Bogdan Marinescu 2011-12-17 17:14:16 +02:00
parent a0ecdc124b
commit e823c8d3fc

View File

@ -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 );