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

Tries to fix "dict has no attribute bus" error

Showing with 2 additions and 0 deletions
+2 -0
...@@ -206,6 +206,8 @@ class Rx(RxAbstract): ...@@ -206,6 +206,8 @@ class Rx(RxAbstract):
super().__init__(**kwargs) super().__init__(**kwargs)
if self.ctl is None: if self.ctl is None:
self.ctl = ctl_module.Ctl() self.ctl = ctl_module.Ctl()
elif isinstance(self.ctl, dict):
self.ctl = ctl_module.Ctl(self.ctl)
print(f'ctl: {self.ctl}, {type(self.ctl)}') # TODO: delete me! print(f'ctl: {self.ctl}, {type(self.ctl)}') # TODO: delete me!
# ADS1115 for voltage measurement (MN) # ADS1115 for voltage measurement (MN)
self._ads_voltage_address = 0x49 self._ads_voltage_address = 0x49
......
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