]> sigrok.org Git - libsigrok.git/commitdiff
motech-lps-30x: Remove SERIAL_NONBLOCK.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 18:05:03 +0000 (19:05 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:31 +0000 (23:30 +0200)
All calls in the driver are now explicitly (non)blocking.

src/hardware/motech-lps-30x/api.c

index d031bee3884310a4b685b2d33215305c864f0b57..f0a0fd876a3b9ea6f471dcec8f9590d952b1e84c 100644 (file)
@@ -399,7 +399,7 @@ static GSList *do_scan(lps_modelid modelid, struct sr_dev_driver *drv, GSList *o
        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)
                goto exit_err;
 
        /* Query and verify model string. */