]> sigrok.org Git - libsigrok.git/commitdiff
genericdmm: use vid.pid as USB conn spec
authorBert Vermeulen <redacted>
Sun, 8 Jul 2012 02:01:04 +0000 (04:01 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:27:36 +0000 (10:27 +0200)
: is just too hard for the CLI

hardware/genericdmm/genericdmm.h

index 467ed662d4d71ecb82986ff57dccbfcc6732dac9..cb1e0a09cd90aa512c91ab3d79c2defff8f941f2 100644 (file)
@@ -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/\\-_]+)$"