]> sigrok.org Git - libsigrok.git/blobdiff - output/chronovu_la8.c
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.
[libsigrok.git] / output / chronovu_la8.c
index 47b421d9054df938800c383c0f0617ebec256c12..0d050fc034e6b92b998ae9072a885a574a96dd4b 100644 (file)
@@ -84,7 +84,7 @@ static uint8_t samplerate_to_divcount(uint64_t samplerate)
 static int init(struct sr_output *o)
 {
        struct context *ctx;
-       struct sr_probe *probe;
+       struct sr_channel *probe;
        GSList *l;
        GVariant *gvar;
 
@@ -108,6 +108,8 @@ static int init(struct sr_output *o)
        /* Get the unitsize. */
        for (l = o->sdi->probes; l; l = l->next) {
                probe = l->data;
+               if (probe->type != SR_PROBE_LOGIC)
+                       continue;
                if (!probe->enabled)
                        continue;
                ctx->num_enabled_probes++;