]> sigrok.org Git - libsigrok.git/commitdiff
ols: Display noise filter flag
authorMatt Ranostay <redacted>
Wed, 28 Aug 2013 04:19:55 +0000 (21:19 -0700)
committerBert Vermeulen <redacted>
Wed, 28 Aug 2013 08:21:59 +0000 (10:21 +0200)
Show if noise filter is on. This is important to be
sure is off for demux mode.

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

index cb03790855c84c67e3656d9150bf698e288e9c30..77082257454e4dac3c059d20341cb94ae8b34750 100644 (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;