mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-12 07:58:07 +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:
parent
16d5e0b6a7
commit
fe403b629e
@ -1280,7 +1280,7 @@ class AndroidTarget(Target):
|
|||||||
|
|
||||||
def get_rotation(self):
|
def get_rotation(self):
|
||||||
cmd = 'settings get system user_rotation'
|
cmd = 'settings get system user_rotation'
|
||||||
return self.execute(cmd).strip()
|
return int(self.execute(cmd).strip())
|
||||||
|
|
||||||
def set_rotation(self, rotation):
|
def set_rotation(self, rotation):
|
||||||
if not 0 <= rotation <= 3:
|
if not 0 <= rotation <= 3:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user