1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

fix(core): fix rust compilation of pixeldata for new rendering on 16bit bus

[no changelog]
This commit is contained in:
tychovrahe 2024-09-27 09:08:52 +02:00 committed by cepetr
parent b5b12ba50c
commit 91b1d950fd

View File

@ -85,7 +85,9 @@ pub fn text_baseline(font: i32) -> i16 {
feature = "disp_i8080_16bit_dw",
not(feature = "disp_i8080_8bit_dw")
))]
#[allow(unused_variables)]
pub fn pixeldata(c: u16) {
#[cfg(not(feature = "new_rendering"))]
unsafe {
ffi::DISPLAY_DATA_ADDRESS.write_volatile(c);
}