From: Bert Vermeulen Date: Sun, 12 Jan 2014 21:52:36 +0000 (+0100) Subject: Remove special handling of pattern mode options. X-Git-Tag: sigrok-cli-0.5.0~46 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=21f6f69686721d53b44c2da8d138c8d85780b8d8;p=sigrok-cli.git Remove special handling of pattern mode options. It's just a standard list of strings, better handled by the regular mechanism. --- diff --git a/show.c b/show.c index db643d1..6b2f985 100644 --- a/show.c +++ b/show.c @@ -235,20 +235,6 @@ void show_dev_detail(void) printf("\n"); g_variant_unref(gvar); - } else if (srci->key == SR_CONF_PATTERN_MODE) { - /* Pattern generator modes */ - printf(" %s", srci->id); - if (sr_config_list(sdi->driver, sdi, probe_group, srci->key, - &gvar) == SR_OK) { - printf(" - supported patterns:\n"); - stropts = g_variant_get_strv(gvar, &num_elements); - for (i = 0; i < num_elements; i++) - printf(" %s\n", stropts[i]); - g_variant_unref(gvar); - } else { - printf("\n"); - } - } else if (srci->key == SR_CONF_SAMPLERATE) { /* Supported samplerates */ printf(" %s", srci->id);