]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Consistently return SR_ERR_ARG if sdi is needed
authorBert Vermeulen <redacted>
Thu, 18 Apr 2013 19:36:25 +0000 (21:36 +0200)
committerBert Vermeulen <redacted>
Thu, 18 Apr 2013 20:48:29 +0000 (22:48 +0200)
hardware/fx2lafw/fx2lafw.c

index eaa218b01c0b7dfc882994c56595c2ffc83f4a0a..54ded2a645e0453cff1be586f44b75c594b45d23 100644 (file)
@@ -592,7 +592,7 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
        switch (id) {
        case SR_CONF_CONN:
                if (!sdi || !sdi->conn)
-                       return SR_ERR;
+                       return SR_ERR_ARG;
                usb = sdi->conn;
                if (usb->address == 255)
                        /* Device still needs to re-enumerate after firmware