]> sigrok.org Git - libsigrok.git/blobdiff - src/output/srzip.c
output: Added preferred file extension field
[libsigrok.git] / src / output / srzip.c
index a82113fa5082fec8c40d23ebcfbb86e2512d7600..356a8ab4047269ea73b128b62287deb2cce0cd1b 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);
@@ -310,6 +312,7 @@ SR_PRIV struct sr_output_module output_srzip = {
        .id = "srzip",
        .name = "srzip",
        .desc = "srzip session file",
+       .exts = (const char*[]){"sr", NULL},
        .options = get_options,
        .init = init,
        .receive = receive,