uni-t-ut32x: Accept SR_CONF_CONN, fixing scan.

This commit is contained in:
Bert Vermeulen 2017-03-21 20:45:46 +01:00
parent df3e608a20
commit 40bbf635fa
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,10 @@
#include <string.h>
#include "protocol.h"
static const uint32_t scanopts[] = {
SR_CONF_CONN,
};
static const uint32_t devopts[] = {
SR_CONF_THERMOMETER,
SR_CONF_CONTINUOUS,
@ -210,6 +214,10 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
(void)cg;
switch (key) {
case SR_CONF_SCAN_OPTIONS:
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t));
break;
case SR_CONF_DEVICE_OPTIONS:
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));