From d1d566f27f7896a2685651a43d8ffadeb2fb3a83 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Mon, 4 Nov 2013 14:02:51 +0000 Subject: [PATCH] Support 6-bit data on Unix. --- serialport.c | 3 +++ 1 file changed, 3 insertions(+) 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; }