Commit 3fff71ab authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates current_max

Showing with 2 additions and 0 deletions
+2 -0
......@@ -90,6 +90,7 @@ class Pwr(PwrAbstract):
if state == 'on':
self.connection.write_register(0x09, 1)
self.current_max(self._current_max)
print(self._current_max)
self._pwr_state = 'on'
self.exec_logger.debug(f'{self.model} is on')
time.sleep(self._pwr_latency) # from pwr specs
......
......@@ -51,6 +51,7 @@ voltage_min = RX_CONFIG['voltage_min']
print(f'Current max: {current_max:.2f}')
def elapsed_seconds(start_time):
lap = datetime.datetime.utcnow() - start_time
return lap.total_seconds()
......
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