]> sigrok.org Git - libsigrok.git/commitdiff
chronovu-la: Fix broken triggering.
authorUwe Hermann <redacted>
Thu, 21 Mar 2019 23:59:39 +0000 (00:59 +0100)
committerUwe Hermann <redacted>
Thu, 21 Mar 2019 23:59:39 +0000 (00:59 +0100)
This fixes bug #1369.

src/hardware/chronovu-la/protocol.c

index 2a1fafd139c48667a1b716440640fbc06e1afedb..3966b99e81fa994c0376089495314723d249ac8b 100644 (file)
@@ -300,6 +300,11 @@ SR_PRIV int cv_convert_trigger(const struct sr_dev_inst *sdi)
                                        || match->match == SR_TRIGGER_RISING)
                                devc->trigger_pattern |= channel_bit;
 
+                       /* LA8 and LA16 support state triggering. */
+                       if (match->match == SR_TRIGGER_ONE
+                                       || match->match == SR_TRIGGER_ZERO)
+                               devc->trigger_mask |= channel_bit;
+
                        /* LA16 (but not LA8) supports edge triggering. */
                        if ((devc->prof->model == CHRONOVU_LA16)) {
                                if (match->match == SR_TRIGGER_RISING