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:
parent
32b5ac05b4
commit
e4cc1a537a
@ -539,6 +539,8 @@ int sp_set_params(struct sp_port *port, int baudrate,
|
|||||||
return SP_ERR_ARG;
|
return SP_ERR_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dcb.ByteSize = bits;
|
||||||
|
|
||||||
switch (stopbits) {
|
switch (stopbits) {
|
||||||
/* Note: There's also ONE5STOPBITS == 1.5 (unneeded so far). */
|
/* Note: There's also ONE5STOPBITS == 1.5 (unneeded so far). */
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user