From 1523453d4e4943f24ff8635c1c8b70e4eed292a0 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Thu, 8 Jun 2023 10:01:42 +0200
Subject: [PATCH] Tries to fix "dict has no attribute bus" error

---
 ohmpi/hardware_components/ohmpi_card_3_15.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ohmpi/hardware_components/ohmpi_card_3_15.py b/ohmpi/hardware_components/ohmpi_card_3_15.py
index 9220faf4..4c751898 100644
--- a/ohmpi/hardware_components/ohmpi_card_3_15.py
+++ b/ohmpi/hardware_components/ohmpi_card_3_15.py
@@ -207,6 +207,7 @@ class Rx(RxAbstract):
         if self.ctl is None:
             self.ctl = ctl_module.Ctl()
         elif isinstance(self.ctl, dict):
+            print(ctl_module)
             self.ctl = ctl_module.Ctl(self.ctl)
         print(f'ctl: {self.ctl}, {type(self.ctl)}')  # TODO: delete me!
         # ADS1115 for voltage measurement (MN)
-- 
GitLab