/* Get the number of channels, and the unitsize. */
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;
ctx->num_enabled_channels, num_channels);
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;