Commit b019b33e authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Removes reference to tx_module.TX_CONFIG and rx_module.RX_CONFIG

Showing with 3 additions and 5 deletions
+3 -5
......@@ -108,8 +108,7 @@ def _gain_auto(channel):
class Tx(TxAbstract):
def __init__(self, **kwargs):
for key in kwargs.copy():
if key in SPECS['tx'].keys():
for key in SPECS['tx'].keys():
kwargs = enforce_specs(kwargs, SPECS['tx'], key)
kwargs.update({'board_name': os.path.basename(__file__).rstrip('.py')})
super().__init__(**kwargs)
......@@ -254,9 +253,8 @@ class Tx(TxAbstract):
class Rx(RxAbstract):
def __init__(self, **kwargs):
for key in kwargs.copy():
if key in SPECS['rx'].keys():
kwargs = enforce_specs(kwargs, SPECS['rx'], key)
for key in SPECS['rx'].keys():
kwargs = enforce_specs(kwargs, SPECS['rx'], key)
kwargs.update({'board_name': os.path.basename(__file__).rstrip('.py')})
super().__init__(**kwargs)
assert isinstance(self.connection, I2C)
......
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