]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: Remove SERIAL_NONBLOCK flag.
authorMartin Ling <redacted>
Tue, 16 Sep 2014 01:01:27 +0000 (02:01 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:18:20 +0000 (23:18 +0200)
All serial read/write calls in this driver are now explicitly
nonblocking so there is no need for this flag.

src/hardware/serial-dmm/api.c

index f423f474cf3f5602b3d8e2ae614f7622f22dad36..478110017f77d7a85eef4ce387ce2c925a402bba 100644 (file)
@@ -353,7 +353,7 @@ static GSList *sdmm_scan(const char *conn, const char *serialcomm, int dmm)
        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 serial port %s.", conn);