diff --git a/src/comio/comio_nix.c b/src/comio/comio_nix.c index 0fd01f581893bdc5fe78df0c7a54ab2c15ec19fd..918492732dffb930141931895171c7aad7d3c4b7 100644 --- a/src/comio/comio_nix.c +++ b/src/comio/comio_nix.c @@ -221,7 +221,8 @@ COM_HANDLE comOpen(const char* device) | IGNPAR /* ignore (discard) parity errors */ ); t.c_oflag = 0; /* No output processing */ - t.c_cflag = ( + t.c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD); + t.c_cflag |= ( CS8 /* 8 bits */ | CREAD /* enable receiver */ /*