From: Soeren Apel Date: Sun, 7 Jun 2015 09:52:30 +0000 (+0200) Subject: yokogawa-dlm: Return correct value for SR_CONF_HDIV X-Git-Tag: libsigrok-0.4.0~477 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=49f49cb55e948e5e05d1334fd5236a0ed02a8e4c;p=libsigrok.git yokogawa-dlm: Return correct value for SR_CONF_HDIV --- 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;