ctx->num_enabled_channels = 0;
for (l = o->sdi->channels; l; l = l->next) {
ch = l->data;
- if (ch->type != SR_PROBE_LOGIC)
+ if (ch->type != SR_CHANNEL_LOGIC)
continue;
if (!ch->enabled)
continue;
wbuf[0] = '\0';
for (i = 0, l = o->sdi->channels; l; l = l->next, i++) {
ch = l->data;
- if (ch->type != SR_PROBE_LOGIC)
+ if (ch->type != SR_CHANNEL_LOGIC)
continue;
if (!ch->enabled)
continue;