diff --git a/serialport.c b/serialport.c index 7796fce..fc286cd 100644 --- a/serialport.c +++ b/serialport.c @@ -897,6 +897,9 @@ static enum sp_return set_config(struct sp_port *port, struct port_data *data, case 6: data->term.c_cflag |= CS6; break; + case 5: + data->term.c_cflag |= CS5; + break; default: return SP_ERR_ARG; }