Commit 97c015ef authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug in mb_2023 TX_init with adc_gain

Showing with 1 addition and 1 deletion
+1 -1
......@@ -469,7 +469,7 @@ class OhmPiHardware:
if 1. / self.rx.sampling_rate > pulse_duration:
sampling_rate = 1. / pulse_duration # TODO: check this...
else:
sampling_rate = self.tx.sampling_rate
sampling_rate = self.rx.sampling_rate
current, voltage = 0., 0.
if self.tx.pwr.voltage_adjustable:
self.tx.pwr.voltage = vab
......
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