]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Added a gpif delay debug message
authorJoel Holdsworth <redacted>
Mon, 7 May 2012 15:44:25 +0000 (16:44 +0100)
committerJoel Holdsworth <redacted>
Thu, 10 May 2012 12:11:07 +0000 (13:11 +0100)
hardware/fx2lafw/command.c

index b5ccbf4665ca845fe9363a254b2ac8c7ee0937f0..6d033bef0c7b1e5737c1c61fb2d905b4cbb742be 100644 (file)
@@ -77,6 +77,9 @@ SR_PRIV int command_start_acquisition(libusb_device_handle *devhdl,
                delay = SR_MHZ(30) / samplerate - 1;
        }
 
+       sr_info("fx2lafw: gpif delay = %d, clocksource = %sMHz", delay,
+               (cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30");
+
        if (delay <= 0 || delay > MAX_SAMPLE_DELAY) {
                sr_err("fx2lafw: Unable to sample at %" PRIu64 "Hz.",
                       samplerate);