zeroplus: Add a missing break statement.

This fixes a bug when trying to trigger on a channel being 0/low.
This commit is contained in:
Uwe Hermann 2015-03-31 23:14:24 +02:00
parent 2cca921d91
commit 72d69b7cd1
1 changed files with 1 additions and 0 deletions

View File

@ -514,6 +514,7 @@ SR_PRIV int analyzer_add_triggers(const struct sr_dev_inst *sdi)
switch (match->match) { switch (match->match) {
case SR_TRIGGER_ZERO: case SR_TRIGGER_ZERO:
g_trigger_status[channel / 4] |= 2 << (channel % 4 * 2); g_trigger_status[channel / 4] |= 2 << (channel % 4 * 2);
break;
case SR_TRIGGER_ONE: case SR_TRIGGER_ONE:
g_trigger_status[channel / 4] |= 1 << (channel % 4 * 2); g_trigger_status[channel / 4] |= 1 << (channel % 4 * 2);
break; break;