From: Gerhard Sittig Date: Thu, 5 Oct 2017 09:35:25 +0000 (+0200) Subject: uni-t-ut32x: pre-set to default conn= spec X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=bf700f679af2ad95c1272df47579b21212241718 uni-t-ut32x: pre-set to default conn= spec 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. --- diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index 8c114975..b49080d0 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -55,7 +55,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) drvc = di->context; - conn = NULL; + conn = "1a86.e008"; for (l = options; l; l = l->next) { src = l->data; switch (src->key) {