]> sigrok.org Git - libsigrok.git/commitdiff
conrad-digi-35-cpu: Remove SERIAL_NONBLOCK flag from open at scan time.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 17:05:56 +0000 (18:05 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:01 +0000 (23:30 +0200)
This open call is only made to check access, the port is closed immediately
afterwards. The flag therefore has no effect.

src/hardware/conrad-digi-35-cpu/api.c

index f0bb236638a0cb9b4a9db9d9d953e35ef69ac862..95b220078f9a17cbea710612cd2290f4c33740bb 100644 (file)
@@ -86,7 +86,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);