diff --git a/controller/python/controller.py b/controller/python/controller.py index a3a2f71cd7a5b41ed481d8ae1965f24e13b76f67..05fe85799675dd34246902f3771a36d008637593 100644 --- a/controller/python/controller.py +++ b/controller/python/controller.py @@ -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