priv(dev)->i2c_cal_range_bits |= adc_src_4020_bits( 4 );
}
// select range
- if( ai_range_bits_6xxx( dev, range ) )
+ if(range == 0)
priv(dev)->i2c_cal_range_bits |= attenuate_bit( channel );
else
priv(dev)->i2c_cal_range_bits &= ~attenuate_bit( channel );
unsigned int channel = CR_CHAN(cmd->chanlist[i]);
unsigned int range = CR_RANGE(cmd->chanlist[i]);
- if(ai_range_bits_6xxx(dev, range))
+ if(range == 0)
priv(dev)->i2c_cal_range_bits |= attenuate_bit(channel);
else
priv(dev)->i2c_cal_range_bits &= ~attenuate_bit(channel);