From 49f49cb55e948e5e05d1334fd5236a0ed02a8e4c Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 7 Jun 2015 11:52:30 +0200 Subject: [PATCH] yokogawa-dlm: Return correct value for SR_CONF_HDIV --- src/hardware/yokogawa-dlm/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/yokogawa-dlm/api.c b/src/hardware/yokogawa-dlm/api.c index eb5bbc19..e72138eb 100644 --- a/src/hardware/yokogawa-dlm/api.c +++ b/src/hardware/yokogawa-dlm/api.c @@ -550,7 +550,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * g_strv_length((char **)dlm_trigger_slopes)); return SR_OK; case SR_CONF_NUM_HDIV: - *data = g_variant_new_uint32(ARRAY_SIZE(dlm_timebases)); + *data = g_variant_new_uint32(model->num_xdivs); return SR_OK; default: return SR_ERR_NA;