From: Uwe Hermann Date: Fri, 2 Nov 2012 14:57:21 +0000 (+0100) Subject: serial: Add missing "break"s. X-Git-Tag: dsupstream~599 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d7c776b9ff604bc05ff59ca69539e2179180f5df;p=libsigrok.git serial: Add missing "break"s. This would otherwise cause bugs when e.g. asking for 2 stopbits. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 38d4a5f1..6942501c 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -293,6 +293,7 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity, break; case 2: term.c_cflag |= CSTOPB; + break; default: return SR_ERR; } @@ -305,6 +306,7 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity, break; case 1: term.c_cflag |= CRTSCTS; + break; case 2: term.c_iflag |= IXON | IXOFF; break;