]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-ut32x: pre-set to default conn= spec
authorGerhard Sittig <redacted>
Thu, 5 Oct 2017 09:35:25 +0000 (11:35 +0200)
committerUwe Hermann <redacted>
Sun, 13 Jan 2019 18:34:10 +0000 (19:34 +0100)
The previous implementation of the UT32x driver expected to see a conn=
spec, without it no device is found. Default to the USB identification
of the CH9325 chip, to make the driver work out of the box. Users still
can provide conn= specs and override the default for other cables.

src/hardware/uni-t-ut32x/api.c

index 8c11497582c480057600c16f48f741bdb95901d4..b49080d0b9ab7514ef3af0a9612ac70b6d102de2 100644 (file)
@@ -55,7 +55,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
 
        drvc = di->context;
 
 
        drvc = di->context;
 
-       conn = NULL;
+       conn = "1a86.e008";
        for (l = options; l; l = l->next) {
                src = l->data;
                switch (src->key) {
        for (l = options; l; l = l->next) {
                src = l->data;
                switch (src->key) {