Commit 66654062 authored by Matthieu Cattin's avatar Matthieu Cattin

fmc_adc: Fix bug in function to get adc correction registers value.

parent 4d6e8f85
......@@ -769,7 +769,7 @@ class CFmcAdc100m:
def get_adc_gain_corr(self, channel):
try:
reg_name = 'CH'+str(self.channel_check(channel))+"_GAIN"
self.fmc_adc_csr.set_field(reg_name, 'VAL', gain)
return self.fmc_adc_csr.get_field(reg_name, 'VAL')
except CSRDeviceOperationError as e:
raise FmcAdc100mOperationError(e)
......@@ -777,7 +777,7 @@ class CFmcAdc100m:
def get_adc_offset_corr(self, channel):
try:
reg_name = 'CH'+str(self.channel_check(channel))+"_OFFSET"
self.fmc_adc_csr.set_field(reg_name, 'VAL', offset)
return self.fmc_adc_csr.get_field(reg_name, 'VAL')
except CSRDeviceOperationError as e:
raise FmcAdc100mOperationError(e)
......
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