- for (const GSList *p = sdi->probes; p; p = p->next)
- if (probe == p->data) {
- const_cast<sr_probe*>(probe)->enabled = enable;
+ for (const GSList *p = sdi->channels; p; p = p->next)
+ if (channel == p->data) {
+ const_cast<sr_channel*>(channel)->enabled = enable;