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