projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0b4dd5
)
increase allowable number of calibration sources, to try and find them
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 28 Aug 2005 13:16:04 +0000
(13:16 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 28 Aug 2005 13:16:04 +0000
(13:16 +0000)
on the 6052
comedi/drivers/cb_pcidas64.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/cb_pcidas64.c
b/comedi/drivers/cb_pcidas64.c
index 52da81458c04e21d226e4fc687738cd3059f721f..eb7ceedaafb22709276e376db6b2253adbf768eb 100644
(file)
--- a/
comedi/drivers/cb_pcidas64.c
+++ b/
comedi/drivers/cb_pcidas64.c
@@
-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 );