]> sigrok.org Git - libsigrok.git/commitdiff
ols: Moved FLAG_FILTER to demux check
authorMatt Ranostay <redacted>
Fri, 6 Sep 2013 06:38:59 +0000 (23:38 -0700)
committerBert Vermeulen <redacted>
Fri, 6 Sep 2013 09:42:25 +0000 (11:42 +0200)
Demux mode was having filter mode set which it doesn't
support per FPGA demon core docs.

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

index f738dce49479c594bfd21d781fc99ac0d80706ca..7302860863a50dd899c997195e34f90de3ef4d9f 100644 (file)
@@ -505,7 +505,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
 
        /* The flag register wants them here, and 1 means "disable channel". */
        devc->flag_reg |= ~(changrp_mask << 2) & 0x3c;
-       devc->flag_reg |= FLAG_FILTER;
        devc->rle_count = 0;
        data = (devc->flag_reg << 24) | ((devc->flag_reg << 8) & 0xff0000);
        if (send_longcommand(serial, CMD_SET_FLAGS, data) != SR_OK)
index afd0dc6f7f54518c2561f7fee4fc6e67856e05bd..d4e04e438458a92139e91e825f180907bf18b702 100644 (file)
@@ -307,6 +307,7 @@ SR_PRIV int ols_set_samplerate(const struct sr_dev_inst *sdi,
                devc->cur_samplerate_divider = (CLOCK_RATE * 2 / samplerate) - 1;
        } else {
                devc->flag_reg &= ~FLAG_DEMUX;
+               devc->flag_reg |= FLAG_FILTER;
                devc->max_probes = NUM_PROBES;
                devc->cur_samplerate_divider = (CLOCK_RATE / samplerate) - 1;
        }