1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-20 14:39:22 +00:00

fix(core): fix TT bootloader emulator backlight, fix rust warning

[no changelog]
This commit is contained in:
tychovrahe 2023-06-30 22:13:54 +02:00 committed by TychoVrahe
parent 03693ff8c3
commit 40b5fedbd2
2 changed files with 5 additions and 2 deletions

View File

@ -230,6 +230,7 @@ def cargo_build():
if TREZOR_MODEL in ('T',):
features.append('touch')
features.append('backlight')
if TREZOR_MODEL in ('R', '1'):
features.append('button')

View File

@ -23,9 +23,11 @@ use crate::ui::component::image::Image;
#[cfg(not(feature = "dma2d"))]
use crate::ui::geometry::Alignment2D;
#[cfg(feature = "backlight")]
use crate::{time::Duration, trezorhal::time};
use crate::{
time::Duration,
trezorhal::{buffers, display, time, uzlib::UzlibContext},
trezorhal::{buffers, display, uzlib::UzlibContext},
ui::lerp::Lerp,
};