increase allowable number of calibration sources, to try and find them
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 28 Aug 2005 13:16:04 +0000 (13:16 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 28 Aug 2005 13:16:04 +0000 (13:16 +0000)
on the 6052

comedi/drivers/cb_pcidas64.c

index 52da81458c04e21d226e4fc687738cd3059f721f..eb7ceedaafb22709276e376db6b2253adbf768eb 100644 (file)
@@ -1963,9 +1963,13 @@ static int ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *insn,lsa
 
 static int ai_config_calibration_source( comedi_device *dev, lsampl_t *data )
 {
-       static const int num_calibration_sources = 8;
        lsampl_t source = data[1];
-
+       int num_calibration_sources;
+       
+       if( board(dev)->layout == LAYOUT_60XX)
+               num_calibration_sources = 16;
+       else
+               num_calibration_sources = 8;
        if(source >= num_calibration_sources)
        {
                printk( "invalid calibration source: %i\n", source );