deprecate SR_DI_SAMPLERATES
authorBert Vermeulen <bert@biot.com>
Fri, 25 Jan 2013 02:04:59 +0000 (03:04 +0100)
committerBert Vermeulen <bert@biot.com>
Fri, 25 Jan 2013 02:04:59 +0000 (03:04 +0100)
sigrok-cli.c

index d3613106e4364d09cc15d503057c23cdc7f59d7a..a67970d10788b1246fdb3b7d6e8dd2e5b8feea1c 100644 (file)
@@ -382,7 +382,7 @@ static void show_dev_detail(void)
                } else if (srci->key == SR_CONF_SAMPLERATE) {
                        /* Supported samplerates */
                        printf("    %s", srci->id);
                } else if (srci->key == SR_CONF_SAMPLERATE) {
                        /* Supported samplerates */
                        printf("    %s", srci->id);
-                       if (sr_info_get(sdi->driver, SR_DI_SAMPLERATES,
+                       if (sr_config_list(sdi->driver, SR_CONF_SAMPLERATE,
                                        (const void **)&samplerates, sdi) != SR_OK) {
                                printf("\n");
                                continue;
                                        (const void **)&samplerates, sdi) != SR_OK) {
                                printf("\n");
                                continue;