From 503133bb5fcf9304d9bd93c023bc9c6c20c3aa0b Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 23 Aug 2013 21:42:51 -0700 Subject: [PATCH] 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 --- hardware/openbench-logic-sniffer/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;