From 72d69b7cd1fe52145634450e43a739e66068a588 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 31 Mar 2015 23:14:24 +0200 Subject: [PATCH] zeroplus: Add a missing break statement. This fixes a bug when trying to trigger on a channel being 0/low. --- src/hardware/zeroplus-logic-cube/analyzer.c | 1 + 1 file changed, 1 insertion(+) 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;