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;