]> sigrok.org Git - pulseview.git/blobdiff - pv/device/device.cpp
Replaced boost::shared_ptr with std::shared_ptr
[pulseview.git] / pv / device / device.cpp
index e70be02592f0c58e3c2b59340068b39478f94842..4a30e5fcd75c3bb12df003096888c6c16dd116aa 100644 (file)
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <cassert>
 #include <sstream>
 
 #include <libsigrok/libsigrok.h>
@@ -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;