From: Matthias Heidbrink Date: Tue, 19 Nov 2013 21:26:53 +0000 (+0100) Subject: serial: Allow 5 and 6 data bits. X-Git-Tag: libsigrok-0.3.0~543 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a970522b6d0551360f66ed08b10104f25cc0537c;p=libsigrok.git serial: Allow 5 and 6 data bits. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 218242ea..de0751a4 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -350,7 +350,7 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, * * @return SR_OK upon success, SR_ERR upon failure. */ -#define SERIAL_COMM_SPEC "^(\\d+)/([78])([neo])([12])(.*)$" +#define SERIAL_COMM_SPEC "^(\\d+)/([5678])([neo])([12])(.*)$" SR_PRIV int serial_set_paramstr(struct sr_serial_dev_inst *serial, const char *paramstr) {