]> sigrok.org Git - libsigrok.git/commitdiff
serial: Allow 5 and 6 data bits.
authorMatthias Heidbrink <redacted>
Tue, 19 Nov 2013 21:26:53 +0000 (22:26 +0100)
committerBert Vermeulen <redacted>
Fri, 22 Nov 2013 01:31:17 +0000 (02:31 +0100)
hardware/common/serial.c

index 218242ea23b30efe2faf0743d376b77d7c229f5a..de0751a42ad37a9bfe2b0789285b8937f4fbc025 100644 (file)
@@ -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)
 {