]> sigrok.org Git - libsigrok.git/commitdiff
aglient-dmm: Remove SERIAL_NONBLOCK flag.
authorMartin Ling <redacted>
Tue, 16 Sep 2014 01:17:47 +0000 (02:17 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:18:21 +0000 (23:18 +0200)
All serial calls in this driver are now explicitly (non)blocking.

src/hardware/agilent-dmm/api.c

index c89d18ed5fde5e4f15fa7a8ef166b3d5fd198cb2..fb40818fc191bea048d056ce7c289802e013df43 100644 (file)
@@ -112,7 +112,7 @@ static GSList *scan(GSList *options)
        if (!(serial = sr_serial_dev_inst_new(conn, serialcomm)))
                return NULL;
 
-       if (serial_open(serial, SERIAL_RDWR | SERIAL_NONBLOCK) != SR_OK)
+       if (serial_open(serial, SERIAL_RDWR) != SR_OK)
                return NULL;
 
        serial_flush(serial);