1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00

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

[no changelog]
This commit is contained in:
Martin Milata 2024-04-11 21:40:33 +02:00
parent 5c5433ada2
commit 4baa4d95a4
2 changed files with 6 additions and 0 deletions

View File

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

View File

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