X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fteleinfo%2Fapi.c;h=92bc27a9e32d8919c784eef76735d90dd2fd73d7;hb=0dc27cd1dbc961366d14607526e54992078e9d5c;hp=71a14106fcf4f1b17c718a06ab041bc88c7aa5bf;hpb=dd7a72ea697a172032f5473b0ddff5e8d47222f4;p=libsigrok.git diff --git a/src/hardware/teleinfo/api.c b/src/hardware/teleinfo/api.c index 71a14106..92bc27a9 100644 --- a/src/hardware/teleinfo/api.c +++ b/src/hardware/teleinfo/api.c @@ -75,11 +75,9 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sr_info("Probing serial port %s.", conn); - serial_flush(serial); - /* 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);