X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Funi-t-ut32x%2Fapi.c;h=25f142b49d9da9a9ff60cacbf430c89c21b50c42;hb=40bbf635fadac32d1e702f02fe571d95338d582b;hp=8e84c2c109aaa1ab1426a053b2c3aebf13eb4d3f;hpb=bee2b0168c087676c1b365861d8c2d4714afa9b9;p=libsigrok.git diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index 8e84c2c1..25f142b4 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -21,6 +21,10 @@ #include #include "protocol.h" +static const uint32_t scanopts[] = { + SR_CONF_CONN, +}; + static const uint32_t devopts[] = { SR_CONF_THERMOMETER, SR_CONF_CONTINUOUS, @@ -134,7 +138,7 @@ static int dev_close(struct sr_dev_inst *sdi) usb = sdi->conn; if (!usb->devhdl) - /* Nothing to do. */ + /* Nothing to do. */ return SR_OK; libusb_release_interface(usb->devhdl, USB_INTERFACE); @@ -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));