From: Matt Ranostay Date: Sat, 24 Aug 2013 04:42:51 +0000 (-0700) Subject: ols: fixed parallel stage triggers X-Git-Tag: libsigrok-0.2.2~80 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=503133bb5fcf9304d9bd93c023bc9c6c20c3aa0b;p=libsigrok.git ols: fixed parallel stage triggers 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 --- diff --git a/hardware/openbench-logic-sniffer/protocol.c b/hardware/openbench-logic-sniffer/protocol.c index ba782852..c8b41685 100644 --- a/hardware/openbench-logic-sniffer/protocol.c +++ b/hardware/openbench-logic-sniffer/protocol.c @@ -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;