ols: Display noise filter flag

Show if noise filter is on. This is important to be
sure is off for demux mode.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
This commit is contained in:
Matt Ranostay 2013-08-27 21:19:55 -07:00 committed by Bert Vermeulen
parent 00d04d3b0e
commit de52409982
1 changed files with 4 additions and 2 deletions

View File

@ -477,8 +477,10 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
}
sr_info("Setting samplerate to %" PRIu64 "Hz (divider %u, "
"demux %s)", devc->cur_samplerate, devc->cur_samplerate_divider,
devc->flag_reg & FLAG_DEMUX ? "on" : "off");
"demux %s, noise_filter %s)", devc->cur_samplerate,
devc->cur_samplerate_divider,
devc->flag_reg & FLAG_DEMUX ? "on" : "off",
devc->flag_reg & FLAG_FILTER ? "on": "off");
if (send_longcommand(serial, CMD_SET_DIVIDER,
reverse32(devc->cur_samplerate_divider)) != SR_OK)
return SR_ERR;