X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fsrzip.c;h=356a8ab4047269ea73b128b62287deb2cce0cd1b;hb=1f501d72ef58861e27c6c7fcbb26780ad41010ef;hp=a82113fa5082fec8c40d23ebcfbb86e2512d7600;hpb=bc96d5f08fe59ea7c51799b148946f5003c90927;p=libsigrok.git diff --git a/src/output/srzip.c b/src/output/srzip.c index a82113fa..356a8ab4 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); @@ -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,