From 91b1d950fd198090b41635a1becedd27b75e0089 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Fri, 27 Sep 2024 09:08:52 +0200 Subject: [PATCH] fix(core): fix rust compilation of pixeldata for new rendering on 16bit bus [no changelog] --- core/embed/rust/src/trezorhal/display.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/embed/rust/src/trezorhal/display.rs b/core/embed/rust/src/trezorhal/display.rs index b2713f695..27775fe92 100644 --- a/core/embed/rust/src/trezorhal/display.rs +++ b/core/embed/rust/src/trezorhal/display.rs @@ -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); }