Commit 1a59e452 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes adc_gain_auto for RX

Showing with 2 additions and 2 deletions
+2 -2
......@@ -256,7 +256,7 @@ class Rx(RxAbstract):
def adc_gain_auto(self):
gain_0 = _gain_auto(AnalogIn(self._ads_voltage, ads.P0))
gain_2 = _gain_auto(AnalogIn(self._ads_voltage, ads.P2))
gain = np.min([gain_0, gain_2])[0]
gain = np.min([gain_0, gain_2])
self.exec_logger.debug(f'Setting TX ADC gain automatically to {gain}')
self.adc_gain = gain
......
......@@ -225,7 +225,7 @@ class Rx(RxAbstract):
def adc_gain_auto(self):
gain_0 = _gain_auto(AnalogIn(self._ads_voltage, ads.P0))
gain_2 = _gain_auto(AnalogIn(self._ads_voltage, ads.P2))
gain = np.min([gain_0, gain_2])[0]
gain = np.min([gain_0, gain_2])
self.exec_logger.debug(f'Setting TX ADC gain automatically to {gain}')
self.adc_gain = gain
......
Supports Markdown
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