From: Bert Vermeulen Date: Sat, 16 Mar 2013 20:51:32 +0000 (+0100) Subject: show SR_CONF_SAMPLE_INTERVAL (debug) X-Git-Tag: sigrok-cli-0.4.0~27 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5570e0f274a4a6513c2186117825f783b187adf9;p=sigrok-cli.git show SR_CONF_SAMPLE_INTERVAL (debug) --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 084e9d2..3b34360 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -676,7 +676,11 @@ static void datafeed_in(const struct sr_dev_inst *sdi, switch (src->key) { case SR_CONF_SAMPLERATE: samplerate = (uint64_t *)src->value; - g_debug("cli: got samplerate %"PRIu64, *samplerate); + g_debug("cli: got samplerate %"PRIu64" Hz", *samplerate); + break; + case SR_CONF_SAMPLE_INTERVAL: + samplerate = (uint64_t *)src->value; + g_debug("cli: got sample interval %"PRIu64" ms", *samplerate); break; default: /* Unknown metadata is not an error. */