diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-11-14 20:36:41 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-11-14 20:36:41 (GMT) |
| commit | e105c8bb68fa630159363e3c206ffe5535ea8f92 (patch) | |
| tree | 92bb9ab878b22ca2fa44cddffdb90d766f233bcd /wasp/wasp.py | |
| parent | aeda73ad90df3688d364a646bd75873a3355f5e2 (diff) | |
apps: testapp: Add an alarm test
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/wasp.py')
| -rw-r--r-- | wasp/wasp.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py index a415666..a44a61c 100644 --- a/wasp/wasp.py +++ b/wasp/wasp.py @@ -312,11 +312,12 @@ class Manager(): def wake(self): """Return to a running state. """ - watch.display.poweron() - if 'wake' in dir(self.app): - self.app.wake() - watch.backlight.set(self._brightness) - watch.touch.wake() + if not self.sleep_at: + watch.display.poweron() + if 'wake' in dir(self.app): + self.app.wake() + watch.backlight.set(self._brightness) + watch.touch.wake() self.keep_awake() |
