From: Bert Vermeulen Date: Sun, 8 Jul 2012 02:01:04 +0000 (+0200) Subject: genericdmm: use vid.pid as USB conn spec X-Git-Tag: dsupstream~849 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7356a55db8e1f0aa27abb8f3cd05bca848c4c2a0;p=libsigrok.git genericdmm: use vid.pid as USB conn spec : is just too hard for the CLI --- diff --git a/hardware/genericdmm/genericdmm.h b/hardware/genericdmm/genericdmm.h index 467ed662..cb1e0a09 100644 --- a/hardware/genericdmm/genericdmm.h +++ b/hardware/genericdmm/genericdmm.h @@ -22,7 +22,7 @@ #define LIBSIGROK_GENERICDMM_H /* SR_HWCAP_CONN takes one of these: */ -#define DMM_CONN_USB_VIDPID "^([0--9a-z]{1,4}):([0--9a-z]{1,4})$" +#define DMM_CONN_USB_VIDPID "^([0-9a-z]{1,4})\\.([0-9a-z]{1,4})$" #define DMM_CONN_USB_BUSADDR "^(\\d+)\\.(\\d+)$" #define DMM_CONN_SERIALPORT "^([a-z0-9/\\-_]+)$"