]> sigrok.org Git - libserialport.git/commitdiff
Support 6-bit data on Unix.
authorMartin Ling <redacted>
Mon, 4 Nov 2013 14:02:51 +0000 (14:02 +0000)
committerUwe Hermann <redacted>
Thu, 14 Nov 2013 23:42:40 +0000 (00:42 +0100)
serialport.c

index 0ebf32681ab81b5e392170ba6a12df07ae2c3870..39ae659ad47533907fa71ce3a274e863c933fad6 100644 (file)
@@ -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;
        }