Skip to content

Commit 08e12c1

Browse files
zeldinzougloub
authored andcommitted
fx2lafw: Fix debug printout when using 192MHz clock
1 parent 300e850 commit 08e12c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hardware/fx2lafw/protocol.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ static int command_start_acquisition(const struct sr_dev_inst *sdi)
120120
}
121121

122122
sr_dbg("GPIF delay = %d, clocksource = %sMHz.", delay,
123-
(cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30");
123+
(cmd.flags & CMD_START_FLAGS_CLK_192MHZ? "192" :
124+
(cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30"));
124125

125126
if (delay < 0 || delay > MAX_SAMPLE_DELAY) {
126127
sr_err("Unable to sample at %" PRIu64 "Hz.", samplerate);

0 commit comments

Comments
 (0)