Commit 642f5bad authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates hardware_sytem to handle MUX_CONFIG

Showing with 1 addition and 1 deletion
+1 -1
...@@ -23,7 +23,7 @@ rx_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG ...@@ -23,7 +23,7 @@ rx_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG
MUX_DEFAULT = HARDWARE_CONFIG['mux']['default'] MUX_DEFAULT = HARDWARE_CONFIG['mux']['default']
MUX_CONFIG = HARDWARE_CONFIG['mux']['boards'] MUX_CONFIG = HARDWARE_CONFIG['mux']['boards']
for k, v in HARDWARE_CONFIG.items(): for k, v in MUX_CONFIG.items():
MUX_CONFIG[k].update({'id': k}) MUX_CONFIG[k].update({'id': k})
for k2, v2 in MUX_DEFAULT.items(): for k2, v2 in MUX_DEFAULT.items():
MUX_CONFIG[k].update({k2: MUX_CONFIG[k].pop(k2, v2)}) MUX_CONFIG[k].update({k2: MUX_CONFIG[k].pop(k2, v2)})
......
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