fx2lafw: allow for sampling at 48MHz, matching a fw change

This commit is contained in:
Kate J. Temkin 2019-08-21 19:12:33 -06:00 committed by Uwe Hermann
parent 6d8205ad9a
commit 1656cd4a4a
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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;
}