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:
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…
Reference in New Issue
Block a user