]> sigrok.org Git - libsigrok.git/commitdiff
demo: Fix SR_CONF_DEVICE_OPTIONS variant type.
authorUwe Hermann <redacted>
Sat, 21 Mar 2015 23:17:07 +0000 (00:17 +0100)
committerUwe Hermann <redacted>
Sun, 22 Mar 2015 01:15:31 +0000 (02:15 +0100)
src/hardware/demo/demo.c

index b26b26050f5a368d1ee3801f5f95f7cf530a2d8c..36ead58901d517e8ed3fa306008d5e82966a4af4 100644 (file)
@@ -606,11 +606,11 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
                switch (key) {
                case SR_CONF_DEVICE_OPTIONS:
                        if (ch->type == SR_CHANNEL_LOGIC)
-                               *data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
+                               *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
                                                devopts_cg_logic, ARRAY_SIZE(devopts_cg_logic),
                                                sizeof(uint32_t));
                        else if (ch->type == SR_CHANNEL_ANALOG)
-                               *data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
+                               *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
                                                devopts_cg_analog, ARRAY_SIZE(devopts_cg_analog),
                                                sizeof(uint32_t));
                        else