fix new ai range code
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 23 May 2003 19:15:19 +0000 (19:15 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 23 May 2003 19:15:19 +0000 (19:15 +0000)
comedi/drivers/cb_pcidas64.c

index 4f7a4ed4002ea4591e7e62f3a0fec6013eb3d3ae..7a48da37bbc3cdeac78b8ebe1bd4968f654e412b 100644 (file)
@@ -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" );