Commit 1523453d authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Tries to fix "dict has no attribute bus" error

Showing with 1 addition and 0 deletions
+1 -0
...@@ -207,6 +207,7 @@ class Rx(RxAbstract): ...@@ -207,6 +207,7 @@ class Rx(RxAbstract):
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): elif isinstance(self.ctl, dict):
print(ctl_module)
self.ctl = ctl_module.Ctl(self.ctl) 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)
......
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