]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
fx2lafw: Consistently return SR_ERR_ARG if sdi is needed
[libsigrok.git] / 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