]> sigrok.org Git - sigrok-cli.git/blobdiff - parsers.c
parse_probestring: Return list of all probes by default.
[sigrok-cli.git] / parsers.c
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;