X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fapi.c;h=52b9d975615ef746303093e3cb4a087bfa989da7;hb=0d485e30c607b22b5f328512327e4e0fafc6cbb7;hp=634a2a570344f84f307f5a8c467a1522b9fc86fa;hpb=9a6517d14b1248855cde0d88ec9519f99184cc77;p=libsigrok.git diff --git a/hardware/openbench-logic-sniffer/api.c b/hardware/openbench-logic-sniffer/api.c index 634a2a57..52b9d975 100644 --- a/hardware/openbench-logic-sniffer/api.c +++ b/hardware/openbench-logic-sniffer/api.c @@ -255,9 +255,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi) struct dev_context *devc; switch (id) { - case SR_DI_HWOPTS: - *data = hwopts; - break; case SR_CONF_SAMPLERATE: if (sdi) { devc = sdi->priv; @@ -326,6 +323,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi (void)sdi; switch (key) { + case SR_CONF_SCAN_OPTIONS: + *data = hwopts; + break; case SR_CONF_DEVICE_OPTIONS: *data = hwcaps; break;