Commit cae51594 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 3 deletions
+3 -3
......@@ -29,7 +29,7 @@ class Ctl(CtlAbstract):
try:
self.interfaces['i2c_ext'] = ExtendedI2C(4) # 4 is defined
except Exception as e:
self.exec_logger.warning('Could not initialize Extended I2C:\n{e}')
self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}')
# modbus
try:
self.interfaces['modbus'] = minimalmodbus.Instrument(port=modbus_port, slaveaddress=modbus_slave_address)
......@@ -40,7 +40,7 @@ class Ctl(CtlAbstract):
self.interfaces['modbus'].serial.parity = modbus_parity # No parity
self.interfaces['modbus'].mode = modbus_mode # RTU mode
except Exception as e:
self.exec_logger.warning('Could not initialize Extended modbus:\n{e}')
self.exec_logger.warning(f'Could not initialize Extended modbus:\n{e}')
platform, on_pi = get_platform()
assert on_pi
......
......@@ -28,7 +28,7 @@ for k, v in MUX_CONFIG.items():
for k2, v2 in MUX_DEFAULT.items():
MUX_CONFIG[k].update({k2: MUX_CONFIG[k].pop(k2, v2)})
TX_CONFIG = HARDWARE_CONFIG['tx']
TX_CONFIG = HARDWARE_CONFIG['tx'] # NOTE: is TX_CONFIG needed or should we use HARDWARE_CONFIX['tx']?
for k, v in tx_module.SPECS['tx'].items():
try:
TX_CONFIG.update({k: TX_CONFIG.pop(k, v['default'])})
......
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