Skip to content
Snippets Groups Projects
Commit dd7f909e authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Return a value instead of a 1-tuple for who_am_i

parent 10e8735a
No related branches found
No related tags found
No related merge requests found
Pipeline #97381 failed
......@@ -31,7 +31,7 @@ class Controller:
def who_am_i(self) -> int:
"""Check that the motors controller board is present. This
should return the same value as Controller.I2C_ADDR."""
return self._read(self.WHO_AM_I, 1, "B")
return self._read(self.WHO_AM_I, 1, "B")[0]
def set_max_percentage(self, percent: float):
"""Set the maximum percentage of power which will be used
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment