Commit 6e08f655 authored by Federico Vaga's avatar Federico Vaga

sw:drv: bugfix ADC calibration

The ADC calibration was applying DAC values
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 2e1cff95
......@@ -166,7 +166,7 @@ void fa_calib_adc_config_chan(struct fa_dev *fa, unsigned int chan,
int32_t temperature, unsigned int flags)
{
int range = fa->range[chan];
struct fa_calib_stanza *cal = &fa->calib.dac[range];
struct fa_calib_stanza *cal = &fa->calib.adc[range];
int gain;
if (fa_calib_is_compensation_on(fa)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment