]> sigrok.org Git - libserialport.git/commitdiff
Set data bits on Windows.
authorMartin Ling <redacted>
Mon, 4 Nov 2013 14:02:41 +0000 (14:02 +0000)
committerUwe Hermann <redacted>
Thu, 14 Nov 2013 23:42:39 +0000 (00:42 +0100)
serialport.c

index f7e946b44d4f850dd22f2280ac718321b7cc3f78..0ebf32681ab81b5e392170ba6a12df07ae2c3870 100644 (file)
@@ -539,6 +539,8 @@ int sp_set_params(struct sp_port *port, int baudrate,
                return SP_ERR_ARG;
        }
 
+       dcb.ByteSize = bits;
+
        switch (stopbits) {
        /* Note: There's also ONE5STOPBITS == 1.5 (unneeded so far). */
        case 1: