]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/mastech-ms6514/api.c
serial: flush() after open() in the serial core.
[libsigrok.git] / src / hardware / mastech-ms6514 / api.c
index 7173cb3c98db1ef47ee4989cf4e3bd871167c290..6e22dd6c344f5f3a646668b525289ea62786fb7a 100644 (file)
@@ -81,8 +81,6 @@ 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)