]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/teleinfo/api.c
serial: extend stream detect for variable length packet checkers
[libsigrok.git] / src / hardware / teleinfo / api.c
index 92bc27a9e32d8919c784eef76735d90dd2fd73d7..e7b4e2342f36e7c71da3846998ce9e3476b1af4c 100644 (file)
@@ -77,7 +77,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, len,
-                                teleinfo_packet_valid, 3000) != SR_OK)
+                       teleinfo_packet_valid, NULL, NULL, 3000) != SR_OK)
                goto scan_cleanup;
 
        sr_info("Found device on port %s.", conn);