yokogawa-dlm: Return correct value for SR_CONF_HDIV

This commit is contained in:
Soeren Apel 2015-06-07 11:52:30 +02:00 committed by Uwe Hermann
parent 2dcf82e9cb
commit 49f49cb55e
1 changed files with 1 additions and 1 deletions

View File

@ -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;