1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Set data bits on Windows.

This commit is contained in:
Martin Ling 2013-11-04 14:02:41 +00:00 committed by Uwe Hermann
parent 32b5ac05b4
commit e4cc1a537a

View 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: