]> sigrok.org Git - libsigrok.git/commitdiff
ols: scan fix
authorBert Vermeulen <redacted>
Sun, 15 Jul 2012 02:08:49 +0000 (04:08 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:27:39 +0000 (10:27 +0200)
hardware/openbench-logic-sniffer/ols.c

index 3619701f3ec4740ed3890f2c018fe2b9b6e6402c..e486d519048ec6e8518dc02ab79de9f5bc7a9a18 100644 (file)
@@ -234,6 +234,7 @@ static struct sr_dev_inst *get_metadata(int fd)
        guchar tmp_c;
 
        sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, NULL, NULL, NULL);
+       sdi->driver = odi;
        ctx = ols_dev_new();
        sdi->priv = ctx;
 
@@ -468,6 +469,7 @@ static GSList *hw_scan(GSList *options)
                        /* not an OLS -- some other board that uses the sump protocol */
                        sdi = sr_dev_inst_new(final_devcnt, SR_ST_INACTIVE,
                                        "Sump", "Logic Analyzer", "v1.0");
+                       sdi->driver = odi;
                        ctx = ols_dev_new();
                        for (j = 0; j < 32; j++) {
                                if (!(probe = sr_probe_new(j, SR_PROBE_LOGIC, TRUE,