]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/agilent-dmm/api.c
serial: flush() after open() in the serial core.
[libsigrok.git] / src / hardware / agilent-dmm / api.c
index f7d30547a20cfc68c5c738d92e273414cf3b742a..8500c43591f44303c109d5a98d1160ccd10b772c 100644 (file)
@@ -131,7 +131,6 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
        if (serial_open(serial, SERIAL_RDWR) != SR_OK)
                return NULL;
 
-       serial_flush(serial);
        if (serial_write_blocking(serial, "*IDN?\r\n", 7, SERIAL_WRITE_TIMEOUT_MS) < 7) {
                sr_err("Unable to send identification string.");
                return NULL;