From: Joel Holdsworth Date: Mon, 7 May 2012 15:44:25 +0000 (+0100) Subject: fx2lafw: Added a gpif delay debug message X-Git-Tag: libsigrok-0.1.1~20 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=dc68c660d566424e9d83b19959a79d40e599c71c;p=libsigrok.git fx2lafw: Added a gpif delay debug message --- diff --git a/hardware/fx2lafw/command.c b/hardware/fx2lafw/command.c index b5ccbf46..6d033bef 100644 --- a/hardware/fx2lafw/command.c +++ b/hardware/fx2lafw/command.c @@ -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);