From: Bert Vermeulen Date: Sun, 3 Aug 2014 12:00:07 +0000 (+0200) Subject: hameg-hmo: Implement SR_CONF_SCAN_OPTIONS. X-Git-Tag: libsigrok-0.4.0~1172 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=226363c4e8247cae249f1c6a28e48e5a0163162c;p=libsigrok.git hameg-hmo: Implement SR_CONF_SCAN_OPTIONS. --- diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c index ff045f16..c3d70059 100644 --- a/src/hardware/hameg-hmo/api.c +++ b/src/hardware/hameg-hmo/api.c @@ -29,7 +29,7 @@ static const char *manufacturers[] = { "HAMEG", }; -static const int32_t hwopts[] = { +static const int32_t scanopts[] = { SR_CONF_CONN, SR_CONF_SERIALCOMM, }; @@ -519,6 +519,10 @@ static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi, model = devc->model_config; switch (key) { + case SR_CONF_SCAN_OPTIONS: + *data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32, + scanopts, ARRAY_SIZE(scanopts), sizeof(int32_t)); + break; case SR_CONF_DEVICE_OPTIONS: if (cg_type == CG_NONE) { *data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,