From: Bert Vermeulen Date: Sun, 15 Jul 2012 02:08:49 +0000 (+0200) Subject: ols: scan fix X-Git-Tag: dsupstream~798 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=2efc5948b6c2c436e339e333994ec7cc96db62be;p=libsigrok.git ols: scan fix --- diff --git a/hardware/openbench-logic-sniffer/ols.c b/hardware/openbench-logic-sniffer/ols.c index 3619701f..e486d519 100644 --- a/hardware/openbench-logic-sniffer/ols.c +++ b/hardware/openbench-logic-sniffer/ols.c @@ -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,