X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevice%2Fdevice.cpp;h=4a30e5fcd75c3bb12df003096888c6c16dd116aa;hb=abad24e2d61c0c84ac8495c22d29a8a3a49ee9fa;hp=e70be02592f0c58e3c2b59340068b39478f94842;hpb=ae2d1bc5b5aba9fcdd7fef42ef1bc9069267d6f7;p=pulseview.git diff --git a/pv/device/device.cpp b/pv/device/device.cpp index e70be025..4a30e5fc 100644 --- a/pv/device/device.cpp +++ b/pv/device/device.cpp @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include @@ -91,8 +92,8 @@ std::string Device::format_device_title() const bool Device::is_trigger_enabled() const { assert(_sdi); - for (const GSList *l = _sdi->probes; l; l = l->next) { - const sr_probe *const p = (const sr_probe *)l->data; + for (const GSList *l = _sdi->channels; l; l = l->next) { + const sr_channel *const p = (const sr_channel *)l->data; assert(p); if (p->trigger && p->trigger[0] != '\0') return true;