From 84ab9da11fc9c1c90667f0e234423d4d306580dd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 11 Jun 2015 18:27:43 +0200 Subject: [PATCH] saleae-logic16: Emit debug info of which bitstream is used. --- src/hardware/saleae-logic16/protocol.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hardware/saleae-logic16/protocol.c b/src/hardware/saleae-logic16/protocol.c index 7e4cb919..36a688da 100644 --- a/src/hardware/saleae-logic16/protocol.c +++ b/src/hardware/saleae-logic16/protocol.c @@ -363,10 +363,13 @@ static int setup_register_mapping(const struct sr_dev_inst *sdi) if ((ret = read_fpga_register(sdi, 7 /* No mapping */, ®7)) != SR_OK) return ret; - if (reg0 == 0 && reg7 > 0x10) + if (reg0 == 0 && reg7 > 0x10) { + sr_info("Original Saleae Logic16 using new bitstream."); devc->fpga_variant = FPGA_VARIANT_ORIGINAL_NEW_BITSTREAM; - else + } else { + sr_info("Original Saleae Logic16 using old bitstream."); devc->fpga_variant = FPGA_VARIANT_ORIGINAL; + } } if (devc->fpga_variant == FPGA_VARIANT_ORIGINAL_NEW_BITSTREAM) {