]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hantek-dso/api.c
Deprecate SR_DI_FILTERS.
[libsigrok.git] / hardware / hantek-dso / api.c
index f797b709f95d4bb2c975512ac5f8b388651b20b6..8ee795dda2b0515b24223adaecce6ab919cdc2bb 100644 (file)
@@ -438,9 +438,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        case SR_DI_TRIGGER_SOURCES:
                *data = trigger_sources;
                break;
-       case SR_DI_FILTERS:
-               *data = filter_targets;
-               break;
        /* TODO remove this */
        case SR_CONF_SAMPLERATE:
                *data = &tmp;
@@ -586,6 +583,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
        case SR_CONF_VDIV:
                *data = vdivs;
                break;
+       case SR_CONF_FILTER:
+               *data = filter_targets;
+               break;
        default:
                return SR_ERR_ARG;
        }