fix(core): fix display fatal error screen (T3T1)

[no changelog]
pull/3626/head
Martin Milata 1 month ago
parent 5c5433ada2
commit 4baa4d95a4

@ -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) {

@ -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() {

Loading…
Cancel
Save