From 6169060acbb97989fbe2019c060b45f354b30e36 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 7 May 2010 13:07:53 +0000 Subject: [PATCH] Make sure to always set 8 bits communication with no parity --- src/gsm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gsm.c b/src/gsm.c index a1b876d..8b3a864 100644 --- a/src/gsm.c +++ b/src/gsm.c @@ -1936,6 +1936,7 @@ static int _reset_do(int fd, unsigned int baudrate, unsigned int hwflow) { if(tcgetattr(fd, &term) != 0) return 1; + term.c_cflag &= ~(CSIZE | PARENB); term.c_cflag |= CS8; term.c_cflag |= CREAD; term.c_cflag |= CLOCAL;