Skip to content

Commit 215fa35

Browse files
committed
fx2lafw: closer to main
1 parent 4fc0e47 commit 215fa35

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/hardware/fx2lafw/protocol.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ static int command_start_acquisition(const struct sr_dev_inst *sdi)
123123
(cmd.flags & CMD_START_FLAGS_CLK_192MHZ? "192" :
124124
(cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30"));
125125

126-
if (delay == 0 && samplerate == SR_MHZ(192) &&
127-
(cmd.flags & CMD_START_FLAGS_CLK_192MHZ)) {
128-
/* Delay == 0 is ok in this case... */
129-
}
130-
else if (delay < 0 || delay > MAX_SAMPLE_DELAY) {
126+
if (delay < 0 || delay > MAX_SAMPLE_DELAY) {
131127
sr_err("Unable to sample at %" PRIu64 "Hz.", samplerate);
132128
return SR_ERR;
133129
}

0 commit comments

Comments
 (0)