serial: Allow 5 and 6 data bits.

This commit is contained in:
Matthias Heidbrink 2013-11-19 22:26:53 +01:00 committed by Bert Vermeulen
parent 7b4edcb654
commit a970522b6d
1 changed files with 1 additions and 1 deletions

View 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)
{