From: Andreas Piesk Date: Mon, 13 May 2019 19:33:32 +0000 (+0200) Subject: saleae-logic16: Warn (instead of erroring out) if FPGA is unsupported X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=108d2ec2c23df2dab1923039fbd1e1a6b2aa7c9b saleae-logic16: Warn (instead of erroring out) if FPGA is unsupported Don't exit with an error if the FPGA is detected as unsupported. Just issue a warning with the detected version and continue. I have such a clone and it works with the original Saleae software and with sigrok despite the fact that its FPGA version is 0xff. --- diff --git a/src/hardware/saleae-logic16/protocol.c b/src/hardware/saleae-logic16/protocol.c index a3dc0900..ce8db37f 100644 --- a/src/hardware/saleae-logic16/protocol.c +++ b/src/hardware/saleae-logic16/protocol.c @@ -428,8 +428,7 @@ static int prime_fpga(const struct sr_dev_inst *sdi) return ret; if (version != 0x10 && version != 0x13 && version != 0x40 && version != 0x41) { - sr_err("Unsupported FPGA version: 0x%02x.", version); - return SR_ERR; + sr_warn("Unsupported FPGA version: 0x%02x.", version); } return SR_OK;