]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/teleinfo/api.c
serial: use timeout API in stream detect, obsoletes bitrate param
[libsigrok.git] / src / hardware / teleinfo / api.c
index 71a14106fcf4f1b17c718a06ab041bc88c7aa5bf..3de4456ba6687b16def01f928078b6650408f219 100644 (file)
@@ -79,7 +79,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, 1200) != SR_OK)
+                                teleinfo_packet_valid, 3000) != SR_OK)
                goto scan_cleanup;
 
        sr_info("Found device on port %s.", conn);