From 1866269811d5a8102032504a800a7269c7a37b4f Mon Sep 17 00:00:00 2001 From: lincoltd7 <117526452+lincoltd7@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:51:05 +0000 Subject: [PATCH] fix to app, now works in sim --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 9a88b35..7e34a06 100644 --- a/app.py +++ b/app.py @@ -242,7 +242,7 @@ def __init__(self): eventbus.on_async(RequestForegroundPopEvent, self._lose_focus, self) # We start with focus on launch, without an event emmited - self._gain_focus(RequestForegroundPushEvent(self)) + asyncio.ensure_future(self._gain_focus(RequestForegroundPushEvent(self))) @@ -1266,7 +1266,7 @@ def draw(self, ctx): if ctx.text_align != ctx.LEFT: print(f"H:Font alignment {ctx.text_align}!") ctx.text_align = ctx.LEFT - ctx.text_baseline = ctx.BOTTOM + ctx.text_baseline = "bottom" if self.current_state == STATE_LOGO: draw_logo_animated(ctx, self.rpm, self._animation_counter, [self.b_msg, self.t_msg], self.qr_code) # Scroll mode indicator