From 5e1b68c6e7567e0dcf7aff1307c3ffd4852cc15a Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 25 Nov 2014 22:49:39 +0100 Subject: [PATCH] Only save enabled channels to a session file. This reverts bc96d5f08fe59ea7c51799b148946f5003c90927 which is not needed anymore since we have a better fix for #410 and #495. --- src/output/srzip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output/srzip.c b/src/output/srzip.c index a82113fa..18a79d5b 100644 --- a/src/output/srzip.c +++ b/src/output/srzip.c @@ -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);