]> sigrok.org Git - libsigrok.git/blobdiff - src/output/srzip.c
Only save enabled channels to a session file.
[libsigrok.git] / 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);