From 72ecba02f44079e96a2708f3ac9ac847c85edb03 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sun, 19 Jan 2014 23:26:26 +0100 Subject: [PATCH] rigol-ds: use appropriately defined NUM_VDIV constant --- hardware/rigol-ds/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index c11d3b64..48cd4bb5 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -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");