]> sigrok.org Git - sigrok-cli.git/commitdiff
parse_probestring: Return list of all probes by default.
authorDaniel Elstner <redacted>
Fri, 21 Feb 2014 00:12:26 +0000 (01:12 +0100)
committerDaniel Elstner <redacted>
Fri, 21 Feb 2014 00:12:26 +0000 (01:12 +0100)
input.c
parsers.c

diff --git a/input.c b/input.c
index b293ddd908c6bc341c30e19d4fb8bdc3f61dfb7f..c483546000897a1a1c823f9052543a6327ab0e01 100644 (file)
--- a/input.c
+++ b/input.c
@@ -131,7 +131,7 @@ static void load_input_file_format(void)
                }
        }
 
-       if (select_probes(in->sdi) > 0)
+       if (select_probes(in->sdi) != SR_OK)
                return;
 
        sr_session_new();
index 12b37662eaecce07019f42655913777227ec987d..43b61b698cef21912f44707cdcf1c49fb65aa1f1 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -48,8 +48,8 @@ GSList *parse_probestring(struct sr_dev_inst *sdi, const char *probestring)
        char **tokens, **range, **names, *eptr, str[8];
 
        if (!probestring || !probestring[0])
-               /* All probes are enabled by default by the driver. */
-               return NULL;
+               /* Use all probes by default. */
+               return g_slist_copy(sdi->probes);
 
        ret = SR_OK;
        range = NULL;