]> sigrok.org Git - libsigrok.git/blobdiff - src/output/srzip.c
rigol-ds: Drop unneeded check of g_strdup_printf() result.
[libsigrok.git] / src / output / srzip.c
index a82113fa5082fec8c40d23ebcfbb86e2512d7600..84755a3d56c42429c6dc9a97fe081f50e7b3d750 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,9 +312,9 @@ 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,
        .cleanup = cleanup,
 };
-