Skip to content

Commit

Permalink
Added reporting of device battery level
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed Oct 18, 2018
1 parent 6fa25c9 commit 616b787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/ios_device.py
Expand Up @@ -73,6 +73,7 @@ def is_device_ready(self):
if response:
level = int(round(float(response) * 100))
if level > 75:
logging.debug("Battery level = %d%%", level)
is_ready = True
else:
logging.debug("Device battery is low (%d%%)", level)
Expand Down

0 comments on commit 616b787

Please sign in to comment.