From: Uwe Hermann Date: Sat, 21 Mar 2015 23:17:07 +0000 (+0100) Subject: demo: Fix SR_CONF_DEVICE_OPTIONS variant type. X-Git-Tag: libsigrok-0.4.0~568 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8249889dfa871a45d57a6f513d4a1a5751673558;p=libsigrok.git demo: Fix SR_CONF_DEVICE_OPTIONS variant type. --- diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index b26b2605..36ead589 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -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