Commit 96a9f659 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Rewrites TX voltage handling

Showing with 1 addition and 1 deletion
+1 -1
...@@ -210,7 +210,7 @@ class Tx(TxAbstract): ...@@ -210,7 +210,7 @@ class Tx(TxAbstract):
@voltage.setter @voltage.setter
def voltage(self, value): def voltage(self, value):
assert isinstance(value, float) assert isinstance(value, float)
value = np.max([TX_CONFIG['voltage_min'], np.min(value, TX_CONFIG['voltage_max'])]) value = np.max([TX_CONFIG['voltage_min'], np.min([value, TX_CONFIG['voltage_max']])])
super().voltage = value super().voltage = value
class Rx(RxAbstract): class Rx(RxAbstract):
......
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