# HG changeset patch # User jeandet # Date 2011-10-05 20:57:33 # Node ID b220a9e23d54d92a3df2c5ee322f232425c8cb69 # Parent 1b7c273d222ab0c210dcabf4fb7a2c565a96e128 Now totaly stable on linux read timeout = 100ms diff --git a/autogen.sh b/autogen.sh old mode 100755 new mode 100644 diff --git a/src/RS232_unix.c b/src/RS232_unix.c --- a/src/RS232_unix.c +++ b/src/RS232_unix.c @@ -57,7 +57,7 @@ int rs232setup(rs232port_t fd, int ChSiz rs232cfnbstop(fd, &terminos, NbStop); rs232cfcsize(fd, &terminos, ChSize); terminos.c_cc[VMIN]=0; - terminos.c_cc[VTIME]=20; + terminos.c_cc[VTIME]=1; tcflush(fd, TCIFLUSH); #ifdef debug if(tcsetattr(fd, TCSANOW, &terminos)!=0)printf("bad setup\n");