]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hantek-dso/api.c
Deprecate SR_DI_VDIVS.
[libsigrok.git] / hardware / hantek-dso / api.c
index 920a3c56a0e90467643b263f3941b64fd229d5e2..f797b709f95d4bb2c975512ac5f8b388651b20b6 100644 (file)
@@ -441,9 +441,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        case SR_DI_FILTERS:
                *data = filter_targets;
                break;
-       case SR_DI_VDIVS:
-               *data = vdivs;
-               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_COUPLING:
                *data = coupling;
                break;
+       case SR_CONF_VDIV:
+               *data = vdivs;
+               break;
        default:
                return SR_ERR_ARG;
        }