From: Matt Ranostay Date: Sat, 7 Sep 2013 05:27:46 +0000 (-0700) Subject: ols: fixed demux mode disable noise filter X-Git-Tag: libsigrok-0.2.2~60 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6ebe003985ac566fb2a35f1c5df8207dc9947d01;p=libsigrok.git ols: fixed demux mode disable noise filter Demux flag wasn't getting set off if one non-demux sample was ran beforehand. Signed-off-by: Matt Ranostay --- diff --git a/hardware/openbench-logic-sniffer/protocol.c b/hardware/openbench-logic-sniffer/protocol.c index d4e04e43..bd9e55bf 100644 --- a/hardware/openbench-logic-sniffer/protocol.c +++ b/hardware/openbench-logic-sniffer/protocol.c @@ -302,10 +302,13 @@ SR_PRIV int ols_set_samplerate(const struct sr_dev_inst *sdi, return SR_ERR_SAMPLERATE; if (samplerate > CLOCK_RATE) { + sr_info("Enabling demux mode."); devc->flag_reg |= FLAG_DEMUX; + devc->flag_reg &= ~FLAG_FILTER; devc->max_probes = NUM_PROBES / 2; devc->cur_samplerate_divider = (CLOCK_RATE * 2 / samplerate) - 1; } else { + sr_info("Disabling demux mode."); devc->flag_reg &= ~FLAG_DEMUX; devc->flag_reg |= FLAG_FILTER; devc->max_probes = NUM_PROBES;