]> sigrok.org Git - libsigrok.git/blobdiff - src/hwdriver.c
session: Add poll debug spew
[libsigrok.git] / src / hwdriver.c
index 811c7292d064d36713f9618bae65809eb9701584..fe8ac457f7009c477da83c83ff22fb74b318d65b 100644 (file)
@@ -165,7 +165,7 @@ static struct sr_key_info sr_key_info_config[] = {
                "Output frequency", NULL},
        {SR_CONF_OUTPUT_FREQUENCY_TARGET, SR_T_FLOAT, "output_frequency_target",
                "Output frequency target", NULL},
-       {SR_CONF_MEASURED_QUANTITY, SR_T_STRING, "measured_quantity",
+       {SR_CONF_MEASURED_QUANTITY, SR_T_MQ, "measured_quantity",
                "Measured quantity", NULL},
        {SR_CONF_MEASURED_2ND_QUANTITY, SR_T_STRING, "measured_2nd_quantity",
                "Measured secondary quantity", NULL},
@@ -302,8 +302,8 @@ SR_PRIV const GVariantType *sr_variant_type_get(int datatype)
                return G_VARIANT_TYPE_TUPLE;
        case SR_T_KEYVALUE:
                return G_VARIANT_TYPE_DICTIONARY;
-       case SR_T_MQLIST:
-               return G_VARIANT_TYPE_ARRAY;
+       case SR_T_MQ:
+               return G_VARIANT_TYPE_TUPLE;
        default:
                return NULL;
        }