]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: use appropriately defined NUM_VDIV constant
authorAurelien Jacobs <redacted>
Sun, 19 Jan 2014 22:26:26 +0000 (23:26 +0100)
committerMartin Ling <redacted>
Mon, 20 Jan 2014 00:34:57 +0000 (00:34 +0000)
hardware/rigol-ds/api.c

index c11d3b6456b949283ef243ba3ccf3e28c19a016b..48cd4bb597955d4f081f631d22b332519f14f4de 100644 (file)
@@ -519,7 +519,7 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi,
                *data = g_variant_new_int32(devc->model->num_horizontal_divs);
                break;
        case SR_CONF_NUM_VDIV:
-               *data = g_variant_new_int32(8);
+               *data = g_variant_new_int32(NUM_VDIV);
        case SR_CONF_DATA_SOURCE:
                if (devc->data_source == DATA_SOURCE_LIVE)
                        *data = g_variant_new_string("Live");