From 4baa4d95a4cc3d435eadbfa89ffae69a224ef482 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 11 Apr 2024 21:40:33 +0200 Subject: [PATCH] fix(core): fix display fatal error screen (T3T1) [no changelog] --- core/embed/rust/src/ui/model_mercury/mod.rs | 5 +++++ core/embed/rust/src/ui/model_mercury/screens.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/core/embed/rust/src/ui/model_mercury/mod.rs b/core/embed/rust/src/ui/model_mercury/mod.rs index 390474919..78d03001e 100644 --- a/core/embed/rust/src/ui/model_mercury/mod.rs +++ b/core/embed/rust/src/ui/model_mercury/mod.rs @@ -21,6 +21,11 @@ impl UIFeaturesCommon for ModelMercuryFeatures { crate::ui::display::fade_backlight_duration(theme::BACKLIGHT_DIM, 150); } + fn backlight_on() { + #[cfg(feature = "backlight")] + crate::ui::display::set_backlight(theme::BACKLIGHT_NORMAL); + } + const SCREEN: Rect = constant::SCREEN; fn screen_fatal_error(title: &str, msg: &str, footer: &str) { diff --git a/core/embed/rust/src/ui/model_mercury/screens.rs b/core/embed/rust/src/ui/model_mercury/screens.rs index 8cbc9c73c..5ccc874db 100644 --- a/core/embed/rust/src/ui/model_mercury/screens.rs +++ b/core/embed/rust/src/ui/model_mercury/screens.rs @@ -9,6 +9,7 @@ pub fn screen_fatal_error(title: &str, msg: &str, footer: &str) { let mut frame = ErrorScreen::new(title.into(), msg.into(), footer.into()); frame.place(constant::screen()); frame.paint(); + display::refresh(); } pub fn screen_boot_stage_2() {