1
0
Fork 0

wasp: Manager: Parameterize the keep awake timer

This might be a reasonable preference for the setings but, more importantly,
we can also set blank_after to very high values to ensure the watch doesn't
sleep during the voice over in videos!
pull/24/head
Daniel Thompson 2020-04-05 09:35:32 +01:00
parent 8c35282214
commit b5e69aead3
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class Manager():
self.app = None
self.applications = []
self.blank_after = 15
self.charging = True
self._brightness = 2
self._button = PinHandler(watch.button)
@ -180,7 +180,7 @@ class Manager():
def keep_awake(self):
"""Reset the keep awake timer."""
self.sleep_at = watch.rtc.uptime + 15
self.sleep_at = watch.rtc.uptime + self.blank_after
def sleep(self):
"""Enter the deepest sleep state possible.