]> sigrok.org Git - libsigrok.git/commitdiff
Only save enabled channels to a session file.
authorAurelien Jacobs <redacted>
Tue, 25 Nov 2014 21:49:39 +0000 (22:49 +0100)
committerUwe Hermann <redacted>
Fri, 5 Dec 2014 00:14:22 +0000 (01:14 +0100)
This reverts bc96d5f08fe59ea7c51799b148946f5003c90927 which is not
needed anymore since we have a better fix for #410 and #495.

src/output/srzip.c

index a82113fa5082fec8c40d23ebcfbb86e2512d7600..18a79d5b50b15403319af4c916340c819113ee84 100644 (file)
@@ -102,6 +102,8 @@ static int zip_create(const struct sr_output *o)
                ch = l->data;
                if (ch->type != SR_CHANNEL_LOGIC)
                        continue;
+               if (!ch->enabled)
+                       continue;
                fprintf(meta, "probe%d = %s\n", ch->index + 1, ch->name);
        }
        fclose(meta);