]> sigrok.org Git - libsigrok.git/commitdiff
brymen-dmm: Remove SERIAL_NONBLOCK flag.
authorMartin Ling <redacted>
Tue, 16 Sep 2014 01:49:27 +0000 (02:49 +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/brymen-dmm/api.c

index 513342172a8418333b6ce8fd21cc404ed76da1cb..553e38b289eae79c4a53436b3bfdf227c292fdeb 100644 (file)
@@ -54,7 +54,7 @@ static GSList *brymen_scan(const char *conn, const char *serialcomm)
        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;
 
        sr_info("Probing port %s.", conn);