]> sigrok.org Git - libsigrok.git/commitdiff
Always save all channels to a session file.
authorBert Vermeulen <redacted>
Mon, 24 Nov 2014 01:21:15 +0000 (02:21 +0100)
committerBert Vermeulen <redacted>
Mon, 24 Nov 2014 01:21:52 +0000 (02:21 +0100)
This works around limitations of the current API that screw up saving
only enabled channels. See bug 410. And bug 495.

src/output/srzip.c

index 18a79d5b50b15403319af4c916340c819113ee84..a82113fa5082fec8c40d23ebcfbb86e2512d7600 100644 (file)
@@ -102,8 +102,6 @@ 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);