]> sigrok.org Git - libsigrok.git/commitdiff
zeroplus: Add a missing break statement.
authorUwe Hermann <redacted>
Tue, 31 Mar 2015 21:14:24 +0000 (23:14 +0200)
committerUwe Hermann <redacted>
Tue, 31 Mar 2015 22:23:24 +0000 (00:23 +0200)
This fixes a bug when trying to trigger on a channel being 0/low.

src/hardware/zeroplus-logic-cube/analyzer.c

index c404a66b73b04a47324f5c5c539c866fe8a0300e..9453bd0b17599168e7d21ff9cb8f5776f941a0e5 100644 (file)
@@ -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;