projects
/
libsigrok.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2e36033
)
agilent-dmm: Mark serial read call as nonblocking.
author
Martin Ling
<redacted>
Tue, 16 Sep 2014 01:07:08 +0000
(
02:07
+0100)
committer
Uwe Hermann
<redacted>
Wed, 24 Sep 2014 21:18:21 +0000
(23:18 +0200)
This driver opens the port with the SERIAL_NONBLOCK flag, so this call is
already a nonblocking one, and is handled appropriately.
src/hardware/agilent-dmm/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/src/hardware/agilent-dmm/sched.c
b/src/hardware/agilent-dmm/sched.c
index 7b41036542220211acf84586da305e2a50d701bf..2329c076cb176b6c4fb02640d96ad1aff5336d94 100644
(file)
--- a/
src/hardware/agilent-dmm/sched.c
+++ b/
src/hardware/agilent-dmm/sched.c
@@
-106,7
+106,7
@@
SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data)
if (revents == G_IO_IN) {
/* Serial data arrived. */
while(AGDMM_BUFSIZE - devc->buflen - 1 > 0) {
- len = serial_read(serial, devc->buf + devc->buflen, 1);
+ len = serial_read
_nonblocking
(serial, devc->buf + devc->buflen, 1);
if (len < 1)
break;
devc->buflen += len;