diff options
Diffstat (limited to 'wasp/wasp.py')
| -rw-r--r-- | wasp/wasp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py index a49948b..a18c466 100644 --- a/wasp/wasp.py +++ b/wasp/wasp.py @@ -115,7 +115,8 @@ class Manager(): """Switch to the requested application. """ if self.app: - self.app.background() + if 'background' in dir(self.app): + self.app.background() else: # System start up... watch.display.poweron() @@ -186,7 +187,7 @@ class Manager(): """Enter the deepest sleep state possible. """ watch.backlight.set(0) - if not self.app.sleep(): + if 'sleep' not in dir(self.app) or not self.app.sleep(): self.switch(self.applications[0]) self.app.sleep() watch.display.poweroff() |
