]> sigrok.org Git - libsigrok.git/commitdiff
victor-dmm: Allow configuration before the device is opened
authorBert Vermeulen <redacted>
Fri, 19 Apr 2013 19:19:54 +0000 (21:19 +0200)
committerBert Vermeulen <redacted>
Sat, 20 Apr 2013 13:26:16 +0000 (15:26 +0200)
hardware/victor-dmm/api.c

index 3a3278c75c353726810b1f0169fb11ed941a1b65..2222797d5d15d11403d5a4438d4bb0c043899974 100644 (file)
@@ -262,11 +262,6 @@ static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi)
                return SR_ERR;
        }
 
-       if (sdi->status != SR_ST_ACTIVE) {
-               sr_err("Device inactive, can't set config options.");
-               return SR_ERR;
-       }
-
        devc = sdi->priv;
        ret = SR_OK;
        switch (id) {