From: Bert Vermeulen Date: Sat, 31 May 2014 08:36:15 +0000 (+0200) Subject: Use sr_trigger_stage_add(). X-Git-Tag: sigrok-cli-0.6.0~100 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f9170968a3ebd9a7109312052ad0b9fb805b5090;p=sigrok-cli.git Use sr_trigger_stage_add(). --- diff --git a/parsers.c b/parsers.c index 63a5acd..a87177b 100644 --- a/parsers.c +++ b/parsers.c @@ -242,7 +242,7 @@ int parse_triggerstring(const struct sr_dev_inst *sdi, const char *s) /* Make sure this ends up in the right stage, creating * them as needed. */ while (!(stage = g_slist_nth_data(trigger->stages, t))) - sr_trigger_stage_new(trigger); + sr_trigger_stage_add(trigger); if (sr_trigger_match_add(stage, ch, match, 0) != SR_OK) { error = TRUE; break;