Commit 184118be authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug with hardware_system _inject

Showing with 1 addition and 3 deletions
+1 -3
......@@ -240,13 +240,11 @@ class OhmPiHardware:
if sampling_rate is None:
sampling_rate = RX_CONFIG['sampling_rate']
if polarity is not None and polarity != self.tx.polarity:
self.tx.polarity = polarity
if self.tx.pwr.voltage_adjustable:
self.tx.pwr.voltage = vab
else:
vab = self.tx.pwr.voltage
injection = Thread(target=self._inject, kwargs={'duration':length})
injection = Thread(target=self._inject, kwargs={'inj_time':length, 'polarity': polarity})
readings = Thread(target=self._read_values, kwargs={'sampling_rate': sampling_rate, 'append': append})
# set gains automatically
self.tx.adc_gain_auto()
......
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