chronovu-la: Fix broken triggering.

This fixes bug #1369.
This commit is contained in:
Uwe Hermann 2019-03-22 00:59:39 +01:00
parent 27a9b6639e
commit d025fce937
1 changed files with 5 additions and 0 deletions

View 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