git://git.jankratochvil.net
/
lptgpib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5f79a5
)
lptgpib_write_byte: Fix EOI; tested by Peterac.
author
Jan Kratochvil
<jan.kratochvil@redhat.com>
Sun, 30 Jun 2013 08:03:35 +0000
(10:03 +0200)
committer
Jan Kratochvil
<jan.kratochvil@redhat.com>
Sun, 30 Jun 2013 08:03:35 +0000
(10:03 +0200)
lptgpib.c
patch
|
blob
|
history
diff --git
a/lptgpib.c
b/lptgpib.c
index
d854b65
..
591d32d
100644
(file)
--- a/
lptgpib.c
+++ b/
lptgpib.c
@@
-146,7
+146,7
@@
void lptgpib_write_byte(char value, char flags){
BUSYWAIT(( tmp = get_control(), !(tmp & NDAC) || (tmp & NRFD) ))
DBG_low("rfd+ndac, ");
- put_data(value
& ~(flags & EOI) );
/* put data */
+ put_data(value
| (flags & EOI) );
/* put data */
put_control( (flags & ATN) ); /* clear TRI */
put_control( DAV | (flags & ATN) ); /* set DAV*/
DBG_low("dav, ");