diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2017-10-18 14:26:09 +0100 |
---|---|---|
committer | Brendan Jackman <brendan.jackman@arm.com> | 2017-10-18 14:26:54 +0100 |
commit | fe403b629ec42bdd7decca3c02a92abe7f6d7f7c (patch) | |
tree | 4b7083111445d0e55e8f1ccc69f5c2d423297243 | |
parent | 16d5e0b6a78c676449596b3bae41ff65979b4181 (diff) | |
download | devlib-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.py | 2 |
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: |