From: Martin Ling Date: Mon, 4 Nov 2013 14:02:51 +0000 (+0000) Subject: Support 6-bit data on Unix. X-Git-Tag: libserialport-0.1.0~135 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d1d566f27f7896a2685651a43d8ffadeb2fb3a83;p=libserialport.git Support 6-bit data on Unix. --- diff --git a/serialport.c b/serialport.c index 0ebf326..39ae659 100644 --- a/serialport.c +++ b/serialport.c @@ -670,6 +670,9 @@ int sp_set_params(struct sp_port *port, int baudrate, case 7: term.c_cflag |= CS7; break; + case 6: + term.c_cflag |= CS6; + break; default: return SP_ERR_ARG; }