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

Support 6-bit data on Unix.

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

View File

@ -670,6 +670,9 @@ int sp_set_params(struct sp_port *port, int baudrate,
case 7: case 7:
term.c_cflag |= CS7; term.c_cflag |= CS7;
break; break;
case 6:
term.c_cflag |= CS6;
break;
default: default:
return SP_ERR_ARG; return SP_ERR_ARG;
} }