Commit 30cdb787 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Removes reference to tx_module.TX_CONFIG and rx_module.RX_CONFIG

Showing with 1 addition and 1 deletion
+1 -1
...@@ -114,7 +114,7 @@ class Tx(TxAbstract): ...@@ -114,7 +114,7 @@ class Tx(TxAbstract):
kwargs.update({'board_name': os.path.basename(__file__).rstrip('.py')}) kwargs.update({'board_name': os.path.basename(__file__).rstrip('.py')})
super().__init__(**kwargs) super().__init__(**kwargs)
assert isinstance(self.connection, I2C) assert isinstance(self.connection, I2C)
kwargs.update({'pwr': kwargs.pop('pwr', SPECS['compatible_power_sources'][0])}) kwargs.update({'pwr': kwargs.pop('pwr', SPECS['tx']['compatible_power_sources'][0])})
if kwargs['pwr'] not in SPECS['tx']['compatible_power_sources']: if kwargs['pwr'] not in SPECS['tx']['compatible_power_sources']:
self.exec_logger.warning(f'Incompatible power source specified check config') self.exec_logger.warning(f'Incompatible power source specified check config')
assert kwargs['pwr'] in SPECS['tx'] assert kwargs['pwr'] in SPECS['tx']
......
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