From: Uwe Hermann Date: Thu, 21 Mar 2019 23:59:39 +0000 (+0100) Subject: chronovu-la: Fix broken triggering. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d025fce9379d469fc1330391a04883759d899d25;p=libsigrok.git chronovu-la: Fix broken triggering. This fixes bug #1369. --- diff --git a/src/hardware/chronovu-la/protocol.c b/src/hardware/chronovu-la/protocol.c index 2a1fafd1..3966b99e 100644 --- a/src/hardware/chronovu-la/protocol.c +++ b/src/hardware/chronovu-la/protocol.c @@ -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