From 69a1b719df9bee40dd993fa8a709403bea91899b Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Tue, 26 Sep 2023 16:11:07 +0200
Subject: [PATCH] Updates hardware_sytem to handle MUX_CONFIG

---
 ohmpi/hardware_system.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py
index 2189c010..cc0e31a0 100644
--- a/ohmpi/hardware_system.py
+++ b/ohmpi/hardware_system.py
@@ -103,7 +103,7 @@ class OhmPiHardware:
             mux_config.update({'exec_logger': self.exec_logger, 'data_logger': self.data_logger,
                                'soh_logger': self.soh_logger})
             mux_config.update(**MUX_CONFIG[mux_id])
-            mux_config.update(mux_config.pop('ctl', self.ctl))
+            mux_config.update({'ctl': mux_config.pop('ctl', self.ctl)})
 
             mux_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["model"]}')
             if isinstance(mux_config['ctl'], dict): ### TODO: is this needed?
-- 
GitLab