commit | fe403b629ec42bdd7decca3c02a92abe7f6d7f7c | [log] [tgz] |
---|---|---|
author | Brendan Jackman <brendan.jackman@arm.com> | Wed Oct 18 14:26:09 2017 +0100 |
committer | Brendan Jackman <brendan.jackman@arm.com> | Wed Oct 18 14:26:54 2017 +0100 |
tree | 4b7083111445d0e55e8f1ccc69f5c2d423297243 | |
parent | 16d5e0b6a78c676449596b3bae41ff65979b4181 [diff] |
AndroidTarget: Make get_rotation return an int That means you can pass the result back to set_rotation without having to change its type.
diff --git a/devlib/target.py b/devlib/target.py index 6132f2b..c8d95ad 100644 --- a/devlib/target.py +++ b/devlib/target.py
@@ -1280,7 +1280,7 @@ def get_rotation(self): cmd = 'settings get system user_rotation' - return self.execute(cmd).strip() + return int(self.execute(cmd).strip()) def set_rotation(self, rotation): if not 0 <= rotation <= 3: