X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevice%2Fdevinst.cpp;h=0301063440200d4b693105623f329fbce303b9f6;hp=cb37ceefd51d39b5a5783c4960af9aabbc58f4d0;hb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43;hpb=adb0a9838d35c42add30f64df4f8df427aed6b89 diff --git a/pv/device/devinst.cpp b/pv/device/devinst.cpp index cb37cee..0301063 100644 --- a/pv/device/devinst.cpp +++ b/pv/device/devinst.cpp @@ -90,19 +90,19 @@ GVariant* DevInst::list_config(const sr_channel_group *group, int key) return data; } -void DevInst::enable_probe(const sr_channel *probe, bool enable) +void DevInst::enable_channel(const sr_channel *channel, bool enable) { assert(_owner); sr_dev_inst *const sdi = dev_inst(); assert(sdi); for (const GSList *p = sdi->channels; p; p = p->next) - if (probe == p->data) { - const_cast(probe)->enabled = enable; + if (channel == p->data) { + const_cast(channel)->enabled = enable; config_changed(); return; } - // Probe was not found in the device + // Channel was not found in the device assert(0); }