Commit 71aae1d9 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Adds retrieve_current in pwr_dps5005

Showing with 3 additions and 0 deletions
+3 -0
...@@ -40,6 +40,9 @@ class Pwr(PwrAbstract): ...@@ -40,6 +40,9 @@ class Pwr(PwrAbstract):
if not subclass_init: if not subclass_init:
self.exec_logger.event(f'{self.model}\tpwr_init\tend\t{datetime.datetime.utcnow()}') self.exec_logger.event(f'{self.model}\tpwr_init\tend\t{datetime.datetime.utcnow()}')
def _retrieve_current(self):
self._current = self.connection.read_register(0x0000, 2)
@property @property
def current(self): def current(self):
return self._current return self._current
......
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