X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevice%2Fdevinst.cpp;h=4543e5c81d8dba5cf212918bdb31cfa199e6476d;hp=f85c6f5e0dd7ea8756784521f6eca36df2e60af8;hb=8bd26d8b9c831b509ee3241ea4dac6f50c023622;hpb=2445160a5d1eb98196d2a1d57246d4c37dd13811 diff --git a/pv/device/devinst.cpp b/pv/device/devinst.cpp index f85c6f5e..4543e5c8 100644 --- a/pv/device/devinst.cpp +++ b/pv/device/devinst.cpp @@ -90,14 +90,14 @@ GVariant* DevInst::list_config(const sr_channel_group *group, int key) return data; } -void DevInst::enable_probe(const sr_probe *probe, bool enable) +void DevInst::enable_probe(const sr_channel *probe, bool enable) { assert(_owner); sr_dev_inst *const sdi = dev_inst(); assert(sdi); - for (const GSList *p = sdi->probes; p; p = p->next) + for (const GSList *p = sdi->channels; p; p = p->next) if (probe == p->data) { - const_cast(probe)->enabled = enable; + const_cast(probe)->enabled = enable; config_changed(); return; }