Use sr_trigger_stage_add().
[sigrok-cli.git] / 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;