Commit e3d91fe0 authored by Federico Vaga's avatar Federico Vaga

drv: fix use the correct slope table for DAC

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 41767cf2
......@@ -123,7 +123,7 @@ static int fa_calib_dac_gain_fix(int range, uint32_t gain_c,
{
int64_t error;
error = gain_adc_error_slope_fix[range] * delta_temp;
error = gain_dac_error_slope_fix[range] * delta_temp;
error /= 0x2000; /* see comment above for gain_dac_error_slope_fix */
error /= 1000; /* convert to degree */
......
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