projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f3cb2
)
Make CR_PACK less strict.
author
David Schleef
<ds@schleef.org>
Fri, 17 May 2002 02:22:35 +0000
(
02:22
+0000)
committer
David Schleef
<ds@schleef.org>
Fri, 17 May 2002 02:22:35 +0000
(
02:22
+0000)
include/comedi.h
patch
|
blob
|
history
diff --git
a/include/comedi.h
b/include/comedi.h
index f9d8403558c845395165c06a134e82d35669ed90..318ebe25510e430d06293e6ebf4df4ed02d532c8 100644
(file)
--- a/
include/comedi.h
+++ b/
include/comedi.h
@@
-51,7
+51,8
@@
typedef unsigned short sampl_t;
/* packs and unpacks a channel/range number */
-#define CR_PACK(chan,rng,aref) ( (((aref)&0x3)<<24) | (((rng)&0xff)<<16) | ((chan)&0xffff) )
+#define CR_PACK(chan,rng,aref) ( (((aref)&0x3)<<24) | \
+ (((rng)&0xff)<<16) | (chan) )
#define CR_PACK_FLAGS(chan, range, aref, flags) (CR_PACK(chan, range, aref) | ((flags) & CR_FLAGS_MASK))
#define CR_CHAN(a) ((a)&0xffff)