From: Daniel Elstner Date: Fri, 21 Feb 2014 00:12:26 +0000 (+0100) Subject: parse_probestring: Return list of all probes by default. X-Git-Tag: sigrok-cli-0.5.0~35 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7b30c426552e9baf9998df61447adec91a17cb9d;p=sigrok-cli.git parse_probestring: Return list of all probes by default. --- diff --git a/input.c b/input.c index b293ddd..c483546 100644 --- 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(); diff --git a/parsers.c b/parsers.c index 12b3766..43b61b6 100644 --- 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;