X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Fols.c;h=9f9cc957bdb743566e01a96570b46bafb8f6b8d2;hb=f649fe8f8e6e2406e5187bd19a8e6641358ae010;hp=0e220534bf7a18187184a5dceef0ba2bf99a4fc1;hpb=3544f848e0d7f67af8e11ce7ec344b34cd797df3;p=libsigrok.git diff --git a/output/ols.c b/output/ols.c index 0e220534..9f9cc957 100644 --- a/output/ols.c +++ b/output/ols.c @@ -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);