From bd812fecf9e0ca4573f15f62bec67d6e6f4875e5 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 10 Apr 2019 17:44:54 +0200 Subject: [PATCH] homescreen: do not return from homescreen workflow --- src/apps/homescreen/homescreen.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apps/homescreen/homescreen.py b/src/apps/homescreen/homescreen.py index 6bc6b4e109..904a976af1 100644 --- a/src/apps/homescreen/homescreen.py +++ b/src/apps/homescreen/homescreen.py @@ -1,13 +1,19 @@ -from trezor import config, res, ui +from trezor import config, io, loop, res, ui from apps.common import storage async def homescreen(): + # render homescreen in dimmed mode and fade back in await ui.backlight_slide(ui.BACKLIGHT_DIM) display_homescreen() await ui.backlight_slide(ui.BACKLIGHT_NORMAL) + # loop forever, never return + touch = loop.wait(io.TOUCH) + while True: + await touch + def display_homescreen(): if not storage.is_initialized():