]> sigrok.org Git - sigrok-cli.git/commitdiff
show SR_CONF_SAMPLE_INTERVAL (debug)
authorBert Vermeulen <redacted>
Sat, 16 Mar 2013 20:51:32 +0000 (21:51 +0100)
committerBert Vermeulen <redacted>
Sat, 16 Mar 2013 20:51:32 +0000 (21:51 +0100)
sigrok-cli.c

index 084e9d29ea422d3943f3e94cada8d1cfab869813..3b34360fcbc0c1b817c4fa8670673ebb3c9da07e 100644 (file)
@@ -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. */