]> sigrok.org Git - libsigrok.git/commitdiff
Use accessor for new libserialport opaque port structure.
authorMartin Ling <redacted>
Sat, 23 Nov 2013 20:48:15 +0000 (20:48 +0000)
committerUwe Hermann <redacted>
Tue, 26 Nov 2013 14:53:40 +0000 (15:53 +0100)
hardware/common/serial.c

index de0751a42ad37a9bfe2b0789285b8937f4fbc025..7cc81c64213e95b67f5949dc6998b5abdf1a4721 100644 (file)
@@ -83,7 +83,7 @@ SR_PRIV int serial_open(struct sr_serial_dev_inst *serial, int flags)
        }
 
 #ifndef _WIN32
-       serial->fd = serial->data->fd;
+       sp_get_port_handle(serial->data, &serial->fd);
 #endif
 
        if (serial->serialcomm)