]> sigrok.org Git - libsigrok.git/blobdiff - output/ols.c
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.
[libsigrok.git] / output / ols.c
index 0e220534bf7a18187184a5dceef0ba2bf99a4fc1..19c4d993163e8c62a2295d1e8e9b3927a35c83b8 100644 (file)
@@ -56,7 +56,7 @@ static int init(struct sr_output *o)
 
 static GString *gen_header(const struct sr_dev_inst *sdi, struct context *ctx)
 {
-       struct sr_probe *probe;
+       struct sr_channel *probe;
        GSList *l;
        GString *s;
        GVariant *gvar;
@@ -71,8 +71,11 @@ static GString *gen_header(const struct sr_dev_inst *sdi, struct context *ctx)
        num_enabled_probes = 0;
        for (l = sdi->probes; l; l = l->next) {
                probe = l->data;
-               if (probe->enabled)
-                       num_enabled_probes++;
+               if (probe->type != SR_PROBE_LOGIC)
+                       continue;
+               if (!probe->enabled)
+                       continue;
+               num_enabled_probes++;
        }
 
        s = g_string_sized_new(512);