From: Martin Ling Date: Mon, 4 Nov 2013 14:02:41 +0000 (+0000) Subject: Set data bits on Windows. X-Git-Tag: libserialport-0.1.0~136 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e4cc1a537a4508544bc27b072644e01feafd4e28;p=libserialport.git Set data bits on Windows. --- diff --git a/serialport.c b/serialport.c index f7e946b..0ebf326 100644 --- a/serialport.c +++ b/serialport.c @@ -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: