]> sigrok.org Git - libsigrok.git/commitdiff
atten-pps3xxx: Remove SERIAL_NONBLOCK.
authorMartin Ling <redacted>
Tue, 16 Sep 2014 01:34:09 +0000 (02:34 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:00 +0000 (23:30 +0200)
All serial read/write calls in the driver are now explicitly (non)blocking.

src/hardware/atten-pps3xxx/api.c

index 0d7c33e55a0377180f716b1ee178a2cea0c0bb06..2e62fb80c0b445147c71a83c9298375a8c0d6f36 100644 (file)
@@ -122,7 +122,7 @@ static GSList *scan(GSList *options, int modelid)
        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);