Commit 2ad613c4 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates current_max

Showing with 1 addition and 1 deletion
+1 -1
...@@ -72,7 +72,7 @@ class Pwr(PwrAbstract): ...@@ -72,7 +72,7 @@ class Pwr(PwrAbstract):
return self._battery_voltage return self._battery_voltage
def current_max(self, value): # [mA] def current_max(self, value): # [mA]
self.connection.write_register(0x0001, hex(int(value)), 0) self.connection.write_register(0x0001, int(value*1000), 0)
@property @property
def pwr_state(self): def pwr_state(self):
......
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