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:
parent
03693ff8c3
commit
40b5fedbd2
@ -230,6 +230,7 @@ def cargo_build():
|
|||||||
|
|
||||||
if TREZOR_MODEL in ('T',):
|
if TREZOR_MODEL in ('T',):
|
||||||
features.append('touch')
|
features.append('touch')
|
||||||
|
features.append('backlight')
|
||||||
if TREZOR_MODEL in ('R', '1'):
|
if TREZOR_MODEL in ('R', '1'):
|
||||||
features.append('button')
|
features.append('button')
|
||||||
|
|
||||||
|
@ -23,9 +23,11 @@ use crate::ui::component::image::Image;
|
|||||||
#[cfg(not(feature = "dma2d"))]
|
#[cfg(not(feature = "dma2d"))]
|
||||||
use crate::ui::geometry::Alignment2D;
|
use crate::ui::geometry::Alignment2D;
|
||||||
|
|
||||||
|
#[cfg(feature = "backlight")]
|
||||||
|
use crate::{time::Duration, trezorhal::time};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
time::Duration,
|
trezorhal::{buffers, display, uzlib::UzlibContext},
|
||||||
trezorhal::{buffers, display, time, uzlib::UzlibContext},
|
|
||||||
ui::lerp::Lerp,
|
ui::lerp::Lerp,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user