From: Aurelien Jacobs Date: Tue, 25 Nov 2014 21:49:39 +0000 (+0100) Subject: Only save enabled channels to a session file. X-Git-Tag: libsigrok-0.4.0~700 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=5e1b68c6e7567e0dcf7aff1307c3ffd4852cc15a 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. --- 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);