]> sigrok.org Git - libsigrok.git/commitdiff
scpi: Avoid using SR_OK_CONTINUE.
authorBert Vermeulen <redacted>
Sun, 30 Aug 2015 18:30:32 +0000 (20:30 +0200)
committerBert Vermeulen <redacted>
Sun, 30 Aug 2015 18:42:54 +0000 (20:42 +0200)
src/scpi/helpers.c

index d93d9e24851d2cc9822fd12e0bfcfdf20bc5c0c8..0fb1d40194ca47d76857c9d9ff0f5a368c83b388 100644 (file)
@@ -74,8 +74,7 @@ SR_PRIV int scpi_cmd(const struct sr_dev_inst *sdi, const struct scpi_command *c
 
        if (!(cmd = scpi_cmd_get(cmdtable, command))) {
                /* Device does not implement this command, that's OK. */
-               /* TODO: deprecate SR_OK_CONTINUE */
-               return SR_OK_CONTINUE;
+               return SR_OK;
        }
 
        scpi = sdi->conn;
@@ -98,7 +97,7 @@ SR_PRIV int scpi_cmd_resp(const struct sr_dev_inst *sdi, const struct scpi_comma
 
        if (!(cmd = scpi_cmd_get(cmdtable, command))) {
                /* Device does not implement this command, that's OK. */
-               return SR_OK_CONTINUE;
+               return SR_OK;
        }
 
        scpi = sdi->conn;