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

Tries to fix "dict object has no attr pwr" error

Showing with 2 additions and 1 deletion
+2 -1
......@@ -15,7 +15,7 @@ class Ctl(CtlAbstract):
assert on_pi
self.board_name = platform
self._cpu_temp_available = True
self.max_cpu_temp = 85. # °C
self.max_cpu_temp = 85. # °C
@property
def _cpu_temp(self):
......
......@@ -73,6 +73,7 @@ class OhmPiHardware:
HARDWARE_CONFIG['tx'].update({'exec_logger': self.exec_logger, 'data_logger': self.data_logger,
'soh_logger': self.soh_logger})
self.tx = kwargs.pop('tx', tx_module.Tx(**HARDWARE_CONFIG['tx']))
print(f'tx: {self.tx}, type: {type(self.tx)}') # TODO: Delete me!
self.tx.pwr = self.pwr
self._cabling = kwargs.pop('cabling', {})
......
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