ols: Moved FLAG_FILTER to demux check

Demux mode was having filter mode set which it doesn't
support per FPGA demon core docs.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
This commit is contained in:
Matt Ranostay 2013-09-05 23:38:59 -07:00 committed by Bert Vermeulen
parent 4ac4595ad0
commit 6a53bde671
2 changed files with 1 additions and 1 deletions

View 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)

View 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;
}