]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/appa-55ii/api.c
serial: extend stream detect for variable length packet checkers
[libsigrok.git] / src / hardware / appa-55ii / api.c
index 50bc37338cc3635d7f28b6d2fe086499ffb8552c..14211c6a92df90eb4f546d561d9517a60a93d5bd 100644 (file)
@@ -81,7 +81,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
 
        /* Let's get a bit of data and see if we can find a packet. */
        if (serial_stream_detect(serial, buf, &len, 25,
-                       appa_55ii_packet_valid, 500) != SR_OK)
+                       appa_55ii_packet_valid, NULL, NULL, 500) != SR_OK)
                goto scan_cleanup;
 
        sr_info("Found device on port %s.", conn);