]> sigrok.org Git - libserialport.git/commitdiff
set_config(): Add missing CS5 handling.
authorUwe Hermann <redacted>
Tue, 19 Nov 2013 11:32:01 +0000 (12:32 +0100)
committerUwe Hermann <redacted>
Tue, 19 Nov 2013 11:32:01 +0000 (12:32 +0100)
serialport.c

index 7796fce2573f37fa066bbc36e92c6e4868d9ab0b..fc286cd0912d59e2b7317531043b02f9514f6fc0 100644 (file)
@@ -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;
                }