aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Jackman <brendan.jackman@arm.com>2017-10-18 14:26:09 +0100
committerBrendan Jackman <brendan.jackman@arm.com>2017-10-18 14:26:54 +0100
commitfe403b629ec42bdd7decca3c02a92abe7f6d7f7c (patch)
tree4b7083111445d0e55e8f1ccc69f5c2d423297243
parent16d5e0b6a78c676449596b3bae41ff65979b4181 (diff)
downloaddevlib-fe403b629ec42bdd7decca3c02a92abe7f6d7f7c.tar.gz
AndroidTarget: Make get_rotation return an int
That means you can pass the result back to set_rotation without having to change its type.
-rw-r--r--devlib/target.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class AndroidTarget(Target):
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: