]> sigrok.org Git - libsigrok.git/commitdiff
ols: Allow configuration before the device is opened
authorBert Vermeulen <redacted>
Mon, 15 Apr 2013 18:05:43 +0000 (20:05 +0200)
committerBert Vermeulen <redacted>
Mon, 15 Apr 2013 18:05:43 +0000 (20:05 +0200)
hardware/openbench-logic-sniffer/api.c

index 9b7beb6194664318e624223c281318b1f446980a..0265aee59db10c84e098ab987af20dd942275d14 100644 (file)
@@ -280,9 +280,6 @@ static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi)
 
        devc = sdi->priv;
 
-       if (sdi->status != SR_ST_ACTIVE)
-               return SR_ERR;
-
        switch (id) {
        case SR_CONF_SAMPLERATE:
                tmp_u64 = g_variant_get_uint64(data);