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

Merge pull request #194 from bjackman/screen-rotation-int

AndroidTarget: Make get_rotation return an int
This commit is contained in:
setrofim 2017-10-23 12:59:08 +01:00 committed by GitHub
commit 1ce96e0097

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: