From: Alexandru Gagniuc Date: Fri, 19 Oct 2012 22:50:20 +0000 (-0500) Subject: libsigrok: (Trivial) Add support for 2400 baud X-Git-Tag: dsupstream~657 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0f7083019449c1d88a5916bae766f3e51f7f8373;p=libsigrok.git libsigrok: (Trivial) Add support for 2400 baud Signed-off-by: Alexandru Gagniuc --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 7a89af66..651b5826 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -221,6 +221,9 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity, case 4800: dcb.BaudRate = CBR_4800; break; + case 2400: + dcb.BaudRate = CBR_2400; + break; default: /* TODO: Error handling. */ break; @@ -241,6 +244,9 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity, return SR_ERR; switch (baudrate) { + case 2400: + baud = B2400; + break; case 4800: baud = B4800; break;