]> sigrok.org Git - libsigrok.git/commitdiff
saleae-logic16: Emit debug info of which bitstream is used.
authorUwe Hermann <redacted>
Thu, 11 Jun 2015 16:27:43 +0000 (18:27 +0200)
committerUwe Hermann <redacted>
Thu, 11 Jun 2015 16:35:40 +0000 (18:35 +0200)
src/hardware/saleae-logic16/protocol.c

index 7e4cb919c496f5ad16ee51ae5c8bf765a1e04c83..36a688da462c3254c0bf3861292469786f3bb794 100644 (file)
@@ -363,10 +363,13 @@ static int setup_register_mapping(const struct sr_dev_inst *sdi)
                if ((ret = read_fpga_register(sdi, 7 /* No mapping */, &reg7)) != 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) {