summaryrefslogtreecommitdiff
path: root/i/marvin/src/serial/serial_dev.cc
diff options
context:
space:
mode:
authordufourj2006-05-23 21:12:52 +0000
committerdufourj2006-05-23 21:12:52 +0000
commit4ab3a381bc327a1d870b113f7046c4058993e782 (patch)
tree212dce366f7ed819390582b38318ee17f537cff3 /i/marvin/src/serial/serial_dev.cc
parenta23ba9429e9110519b395d306ec33a7bdb52dfa3 (diff)
Cadeau!
Désactivation du RTS/CTS.
Diffstat (limited to 'i/marvin/src/serial/serial_dev.cc')
-rw-r--r--i/marvin/src/serial/serial_dev.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/i/marvin/src/serial/serial_dev.cc b/i/marvin/src/serial/serial_dev.cc
index 3e796e7..a1824a2 100644
--- a/i/marvin/src/serial/serial_dev.cc
+++ b/i/marvin/src/serial/serial_dev.cc
@@ -65,13 +65,13 @@ SerialDev::open (const std::string &ttyname)
// Paramètrer les options du port série.
// Vérification de la parité en entrée, remplace toute erreur de
// transmission par un caractère nul. Pas de Xon Xoff. Entrée crue.
- tios.c_iflag &= ~(IGNPAR | PARMRK | ISTRIP | IGNBRK | BRKINT | IGNCR |
- ICRNL | INLCR | IXON | IXOFF | IXANY | IMAXBEL);
- tios.c_iflag |= INPCK;
+ tios.c_iflag &= ~(IGNPAR | PARMRK | ISTRIP | BRKINT | IGNCR | ICRNL |
+ INLCR | IXON | IXOFF | IXANY | IMAXBEL);
+ tios.c_iflag |= INPCK | IGNBRK;
// Sortie crue.
tios.c_oflag &= ~(OPOST);
// Pas de status line, 1 bit de stop, 8 bits de données, règle la parité.
- tios.c_cflag &= ~(HUPCL | CSTOPB | PARENB | PARODD | CSIZE);
+ tios.c_cflag &= ~(HUPCL | CSTOPB | PARENB | PARODD | CSIZE | CRTSCTS);
tios.c_cflag |= CS8 | CLOCAL | CREAD;
if (par != 'n') tios.c_cflag |= PARENB;
if (par == 'o') tios.c_cflag |= PARODD;