summaryrefslogtreecommitdiff
path: root/wasp
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-05 08:35:32 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-06 21:04:20 (GMT)
commitb5e69aead38e7f14d658435952330a027a862945 (patch)
tree011970590a1f64ff389336e49da02bea5b5e1769 /wasp
parent8c35282214dc58ac4ea7edcf019b03bb0d9dc54c (diff)
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!
Diffstat (limited to 'wasp')
-rw-r--r--wasp/wasp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index e51454e..a49948b 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -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.