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

Fixes bug in hardware_system dynamic imports

Showing with 4 additions and 4 deletions
+4 -4
...@@ -6,10 +6,10 @@ from OhmPi.logging_setup import create_stdout_logger ...@@ -6,10 +6,10 @@ from OhmPi.logging_setup import create_stdout_logger
from OhmPi.config import HARDWARE_CONFIG from OhmPi.config import HARDWARE_CONFIG
from threading import Thread, Event, Barrier from threading import Thread, Event, Barrier
controller_module = importlib.import_module(f'OhmPi.hardware.{HARDWARE_CONFIG["controller"]["model"]}') controller_module = importlib.import_module(f'OhmPi.hardware_components.{HARDWARE_CONFIG["controller"]["model"]}')
tx_module = importlib.import_module(f'OhmPi.hardware.{HARDWARE_CONFIG["tx"]["model"]}') tx_module = importlib.import_module(f'OhmPi.hardware_components.{HARDWARE_CONFIG["tx"]["model"]}')
rx_module = importlib.import_module(f'OhmPi.hardware.{HARDWARE_CONFIG["rx"]["model"]}') rx_module = importlib.import_module(f'OhmPi.hardware_components.{HARDWARE_CONFIG["rx"]["model"]}')
mux_module = importlib.import_module(f'OhmPi.hardware.{HARDWARE_CONFIG["mux"]["model"]}') mux_module = importlib.import_module(f'OhmPi.hardware_components.{HARDWARE_CONFIG["mux"]["model"]}')
TX_CONFIG = tx_module.TX_CONFIG TX_CONFIG = tx_module.TX_CONFIG
RX_CONFIG = rx_module.RX_CONFIG RX_CONFIG = rx_module.RX_CONFIG
MUX_CONFIG = mux_module.MUX_CONFIG MUX_CONFIG = mux_module.MUX_CONFIG
......
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