]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: minor fixes
authorBert Vermeulen <redacted>
Sun, 10 Feb 2013 16:06:38 +0000 (17:06 +0100)
committerBert Vermeulen <redacted>
Sun, 10 Feb 2013 16:06:56 +0000 (17:06 +0100)
hardware/hantek-dso/api.c

index 80bd0b497353a77f124b1d25994cedbb5b9715d6..e648fa4e639cf8433d8ca79427ba0656decddc49 100644 (file)
@@ -37,9 +37,9 @@
 /* TODO tune this properly */
 #define TICK 1
 
-static const int hwcaps[] = {
+static const int devopts[] = {
        SR_CONF_OSCILLOSCOPE,
-       SR_CONF_LIMIT_SAMPLES,
+       SR_CONF_LIMIT_FRAMES,
        SR_CONF_CONTINUOUS,
        SR_CONF_TIMEBASE,
        SR_CONF_BUFFERSIZE,
@@ -535,7 +535,7 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
 
        switch (key) {
        case SR_CONF_DEVICE_OPTIONS:
-               *data = hwcaps;
+               *data = devopts;
                break;
        case SR_CONF_BUFFERSIZE:
                *data = buffersizes;