X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevice%2Fdevice.cpp;h=4a30e5fcd75c3bb12df003096888c6c16dd116aa;hb=f9abf97e78bc4825d80926b0ebc6cbaef40768b1;hp=e70be02592f0c58e3c2b59340068b39478f94842;hpb=ae2d1bc5b5aba9fcdd7fef42ef1bc9069267d6f7;p=pulseview.git diff --git a/pv/device/device.cpp b/pv/device/device.cpp index e70be02..4a30e5f 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;