]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/demo/demo.c
cem-dt-885x: Publish driver options.
[libsigrok.git] / src / hardware / demo / demo.c
index a870c112f28431856a322eb99c80809f9294c36c..3bf7a242268e73ea9bc8e9753a22db0617506a79 100644 (file)
@@ -287,7 +287,7 @@ static GSList *scan(GSList *options)
        }
 
        devices = NULL;
-       sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, "Demo device", NULL, NULL);
+       sdi = sr_dev_inst_new(SR_ST_ACTIVE, "Demo device", NULL, NULL);
        if (!sdi) {
                sr_err("Device instance creation failed.");
                return NULL;
@@ -496,7 +496,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
                if (!cg)
                        return SR_ERR_CHANNEL_GROUP;
                stropt = g_variant_get_string(data, NULL);
-               ch = cg->channels->data;
                logic_pattern = analog_pattern = -1;
                for (i = 0; i < ARRAY_SIZE(logic_pattern_str); i++) {
                        if (!strcmp(stropt, logic_pattern_str[i])) {