mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-12 07:58:07 +00:00
Merge pull request #194 from bjackman/screen-rotation-int
AndroidTarget: Make get_rotation return an int
This commit is contained in:
commit
1ce96e0097
@ -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