fx2lafw: allow for sampling at 48MHz, matching a fw change
This commit is contained in:
parent
6d8205ad9a
commit
1656cd4a4a
|
@ -157,6 +157,7 @@ static const uint64_t samplerates[] = {
|
|||
SR_MHZ(12),
|
||||
SR_MHZ(16),
|
||||
SR_MHZ(24),
|
||||
SR_MHZ(48),
|
||||
};
|
||||
|
||||
static gboolean is_plausible(const struct libusb_device_descriptor *des)
|
||||
|
|
|
@ -112,7 +112,7 @@ static int command_start_acquisition(const struct sr_dev_inst *sdi)
|
|||
sr_dbg("GPIF delay = %d, clocksource = %sMHz.", delay,
|
||||
(cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30");
|
||||
|
||||
if (delay <= 0 || delay > MAX_SAMPLE_DELAY) {
|
||||
if (delay < 0 || delay > MAX_SAMPLE_DELAY) {
|
||||
sr_err("Unable to sample at %" PRIu64 "Hz.", samplerate);
|
||||
return SR_ERR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue