Deprecate SR_DI_PATTERNS.
[sigrok-cli.git] / sigrok-cli.c
index e95ec9ebbc687a1e120961748c1c77d212e770f0..eaec7621e2fae536029ba7a22a6223441539c41a 100644 (file)
@@ -370,7 +370,7 @@ static void show_dev_detail(void)
                if (srci->key == SR_CONF_PATTERN_MODE) {
                        /* Pattern generator modes */
                        printf("    %s", srci->id);
-                       if (sr_info_get(sdi->driver, SR_DI_PATTERNS,
+                       if (sr_config_list(sdi->driver, SR_CONF_PATTERN_MODE,
                                        (const void **)&stropts, sdi) == SR_OK) {
                                printf(" - supported patterns:\n");
                                for (i = 0; stropts[i]; i++)