]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/api.c
serial: flush() after open() in the serial core.
[libsigrok.git] / src / hardware / atten-pps3xxx / api.c
index b82b9fb333cf9fd460764d638ce325f3e607caaf..dc6e5201977d30769956521c1450ffebfd8eb8b4 100644 (file)
@@ -113,8 +113,6 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options, int modelid)
        if (serial_open(serial, SERIAL_RDWR) != SR_OK)
                return NULL;
 
-       serial_flush(serial);
-
        /* This is how the vendor software scans for hardware. */
        memset(packet, 0, PACKET_SIZE);
        packet[0] = 0xaa;