]> sigrok.org Git - sigrok-cli.git/commitdiff
Use sr_trigger_stage_add().
authorBert Vermeulen <redacted>
Sat, 31 May 2014 08:36:15 +0000 (10:36 +0200)
committerBert Vermeulen <redacted>
Sat, 31 May 2014 08:36:15 +0000 (10:36 +0200)
parsers.c

index 63a5acd424715b0d313827e9b6d622b7dd7429e2..a87177b99871c0efc9c59b45a410c21cd069572f 100644 (file)
--- 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;