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

Updates current_max

Showing with 3 additions and 3 deletions
+3 -3
...@@ -71,8 +71,8 @@ class Pwr(PwrAbstract): ...@@ -71,8 +71,8 @@ class Pwr(PwrAbstract):
self._battery_voltage = self.connection.read_register(0x05, 2) self._battery_voltage = self.connection.read_register(0x05, 2)
return self._battery_voltage return self._battery_voltage
def current_max(self, value): def current_max(self, value): # [mA]
self.connection.write_register(0x0001, value, 0) self.connection.write_register(0x0001, hex(int(value)), 0)
@property @property
def pwr_state(self): def pwr_state(self):
......
...@@ -38,7 +38,7 @@ except Exception as error: ...@@ -38,7 +38,7 @@ except Exception as error:
print(colored(f'Unexpected error: {error}', 'red')) print(colored(f'Unexpected error: {error}', 'red'))
arm64_imports = None arm64_imports = None
VERSION = '3.0.0-alpha' VERSION = '3.0.0-beta'
class OhmPi(object): class OhmPi(object):
......
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