X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmastech-ms6514%2Fapi.c;h=62d923c460e8fff8574318297bf20bbf2d54b599;hb=1a7adeac29d6331b53a2c78fc9c70429b32da0bd;hp=7173cb3c98db1ef47ee4989cf4e3bd871167c290;hpb=23669c3df33a3ea884afabf4b7a8cd6fe4a75824;p=libsigrok.git diff --git a/src/hardware/mastech-ms6514/api.c b/src/hardware/mastech-ms6514/api.c index 7173cb3c..62d923c4 100644 --- a/src/hardware/mastech-ms6514/api.c +++ b/src/hardware/mastech-ms6514/api.c @@ -81,11 +81,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, (2 * MASTECH_MS6514_FRAME_SIZE), - mastech_ms6514_packet_valid, 500) != SR_OK) + if (serial_stream_detect(serial, buf, &len, 2 * MASTECH_MS6514_FRAME_SIZE, + mastech_ms6514_packet_valid, NULL, NULL, 500) != SR_OK) goto scan_cleanup; sr_info("Found device on port %s.", conn);