From: Frank Mori Hess Date: Fri, 23 May 2003 19:15:19 +0000 (+0000) Subject: fix new ai range code X-Git-Tag: r0_7_67x~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fda92bd61e85e2bf8b33ed0dad05ee3b45059b78;p=comedi.git fix new ai range code --- diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 4f7a4ed4..7a48da37 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -1106,31 +1106,31 @@ static unsigned int ai_range_bits_6xxx( const comedi_device *dev, unsigned int r switch( range->max ) { case 10000000: - bits = 0; + bits = 0x000; break; case 5000000: - bits = 1; + bits = 0x100; break; case 2000000: case 2500000: - bits = 2; + bits = 0x200; break; case 1000000: case 1250000: - bits = 3; + bits = 0x300; break; case 500000: - bits = 4; + bits = 0x400; break; case 200000: case 250000: - bits = 5; + bits = 0x500; break; case 100000: - bits = 6; + bits = 0x600; break; case 50000: - bits = 7; + bits = 0x700; break; default: comedi_error( dev, "bug! in ai_range_bits_6xxx" );