]> sigrok.org Git - libsigrok.git/commit
radioshack-dmm: Fix opening of serial port.
authorAlexandru Gagniuc <redacted>
Sun, 2 Dec 2012 18:43:37 +0000 (12:43 -0600)
committerUwe Hermann <redacted>
Sun, 2 Dec 2012 20:48:17 +0000 (21:48 +0100)
commitae95ffebfa0d8c0992332b33631a26d898957b34
tree98249e8e71bc84d3420bd902514a8065a44c5cf7
parentd5ce233fe16a68e6522538c226a91e63628521dd
radioshack-dmm: Fix opening of serial port.

During scan the serial port is opened with SERIAL_RDONLY | SERIAL_NONBLOCK,
which works fine, but when acquisition starts, it is opened only with
SERIAL_RDONLY. On Linux, if cdc_acm can make a claim to the USB to serial
converter, opening the port will fail.

Open port with SERIAL_RDONLY | SERIAL_NONBLOCK.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/radioshack-dmm/api.c