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 <mranostay@gmail.com>
This commit is contained in:
Matt Ranostay 2013-08-23 21:42:51 -07:00 committed by Bert Vermeulen
parent d0107565c1
commit 503133bb5f
1 changed files with 1 additions and 1 deletions

View File

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