]> sigrok.org Git - libsigrok.git/commitdiff
ols: fixed parallel stage triggers
authorMatt Ranostay <redacted>
Sat, 24 Aug 2013 04:42:51 +0000 (21:42 -0700)
committerBert Vermeulen <redacted>
Mon, 26 Aug 2013 07:48:41 +0000 (09:48 +0200)
Stage count was always getting incremented one more than
actual stages, and this caused a extra stage with zero'ed data
probe lines to have the start bit field.

Signed-off-by: Matt Ranostay <redacted>
hardware/openbench-logic-sniffer/protocol.c

index ba7828527fc74afd3a96517ce2a9bd820707ad58..c8b416857e73aae52b57309bd496cc9ec3112184 100644 (file)
@@ -99,7 +99,7 @@ SR_PRIV int ols_configure_probes(const struct sr_dev_inst *sdi)
                                return SR_ERR;
                }
                if (stage > devc->num_stages)
-                       devc->num_stages = stage;
+                       devc->num_stages = stage - 1;
        }
 
        return SR_OK;