]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/openbench-logic-sniffer/api.c
ols: also reflect successful identify response in diagnostics
[libsigrok.git] / src / hardware / openbench-logic-sniffer / api.c
index 67bb230d208144fe44176a33a877ba59e39ded5f..81a29fb68238f88b9081597d9f542833a9b18510 100644 (file)
@@ -161,6 +161,10 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
 
                sr_hexdump_free(id);
                return NULL;
+       } else {
+               sr_dbg("Successful detection, got '%c%c%c%c' (0x%02x 0x%02x 0x%02x 0x%02x).",
+                      buf[0], buf[1], buf[2], buf[3],
+                      buf[0], buf[1], buf[2], buf[3]);
        }
 
        /* Definitely using the OLS protocol, check if it supports