]> sigrok.org Git - libsigrok.git/commitdiff
yokogawa-dlm: Return correct value for SR_CONF_HDIV
authorSoeren Apel <redacted>
Sun, 7 Jun 2015 09:52:30 +0000 (11:52 +0200)
committerUwe Hermann <redacted>
Mon, 22 Jun 2015 22:15:56 +0000 (00:15 +0200)
src/hardware/yokogawa-dlm/api.c

index eb5bbc19b39aca02da04e8f9d1f0aee00af2484c..e72138eb3e0b99304ecdb70f3e9accb1cf49eefc 100644 (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;