From 4d143d616d76b6ad708cdedd68cbfede4394fc4b Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 17 May 2002 02:22:35 +0000 Subject: [PATCH] Make CR_PACK less strict. --- include/comedi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/comedi.h b/include/comedi.h index f9d8403..318ebe2 100644 --- 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) -- 2.26.2