From: Uwe Hermann Date: Tue, 31 Mar 2015 21:14:24 +0000 (+0200) Subject: zeroplus: Add a missing break statement. X-Git-Tag: libsigrok-0.4.0~550 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=72d69b7cd1fe52145634450e43a739e66068a588;p=libsigrok.git zeroplus: Add a missing break statement. This fixes a bug when trying to trigger on a channel being 0/low. --- diff --git a/src/hardware/zeroplus-logic-cube/analyzer.c b/src/hardware/zeroplus-logic-cube/analyzer.c index c404a66b..9453bd0b 100644 --- a/src/hardware/zeroplus-logic-cube/analyzer.c +++ b/src/hardware/zeroplus-logic-cube/analyzer.c @@ -514,6 +514,7 @@ SR_PRIV int analyzer_add_triggers(const struct sr_dev_inst *sdi) switch (match->match) { case SR_TRIGGER_ZERO: g_trigger_status[channel / 4] |= 2 << (channel % 4 * 2); + break; case SR_TRIGGER_ONE: g_trigger_status[channel / 4] |= 1 << (channel % 4 * 2); break;