]> sigrok.org Git - libsigrok.git/commitdiff
agilent-dmm: Publish driver options.
authorBert Vermeulen <redacted>
Tue, 18 Nov 2014 14:34:52 +0000 (15:34 +0100)
committerBert Vermeulen <redacted>
Tue, 18 Nov 2014 14:34:52 +0000 (15:34 +0100)
src/hardware/agilent-dmm/api.c

index 9dcbd230761042590eba8c117fda520693a4a416..59bb9ffab93c7aa9d0e4d00cb4b70808562f35d3 100644 (file)
@@ -229,8 +229,12 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
                                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));
+               if (!sdi)
+                       *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
+                                       devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));
+               else
+                       *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
+                                       devopts, 0, sizeof(uint32_t));
                break;
        default:
                return SR_ERR_NA;