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!
This commit is contained in:
parent
8c35282214
commit
b5e69aead3
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ class Manager():
|
||||||
self.app = None
|
self.app = None
|
||||||
|
|
||||||
self.applications = []
|
self.applications = []
|
||||||
|
self.blank_after = 15
|
||||||
self.charging = True
|
self.charging = True
|
||||||
self._brightness = 2
|
self._brightness = 2
|
||||||
self._button = PinHandler(watch.button)
|
self._button = PinHandler(watch.button)
|
||||||
|
@ -180,7 +180,7 @@ class Manager():
|
||||||
|
|
||||||
def keep_awake(self):
|
def keep_awake(self):
|
||||||
"""Reset the keep awake timer."""
|
"""Reset the keep awake timer."""
|
||||||
self.sleep_at = watch.rtc.uptime + 15
|
self.sleep_at = watch.rtc.uptime + self.blank_after
|
||||||
|
|
||||||
def sleep(self):
|
def sleep(self):
|
||||||
"""Enter the deepest sleep state possible.
|
"""Enter the deepest sleep state possible.
|
||||||
|
|
Loading…
Reference in a new issue