1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-02-07 05:30:44 +00:00

AndroidTarget: Make get_rotation return an int

That means you can pass the result back to set_rotation without
having to change its type.
This commit is contained in:
Brendan Jackman 2017-10-18 14:26:09 +01:00
parent 16d5e0b6a7
commit fe403b629e

View File

@ -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: