mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-19 03:40:59 +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);
|
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;
|
const SCREEN: Rect = constant::SCREEN;
|
||||||
|
|
||||||
fn screen_fatal_error(title: &str, msg: &str, footer: &str) {
|
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());
|
let mut frame = ErrorScreen::new(title.into(), msg.into(), footer.into());
|
||||||
frame.place(constant::screen());
|
frame.place(constant::screen());
|
||||||
frame.paint();
|
frame.paint();
|
||||||
|
display::refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn screen_boot_stage_2() {
|
pub fn screen_boot_stage_2() {
|
||||||
|
Loading…
Reference in New Issue
Block a user