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:
parent
b5b12ba50c
commit
91b1d950fd
@ -85,7 +85,9 @@ pub fn text_baseline(font: i32) -> i16 {
|
|||||||
feature = "disp_i8080_16bit_dw",
|
feature = "disp_i8080_16bit_dw",
|
||||||
not(feature = "disp_i8080_8bit_dw")
|
not(feature = "disp_i8080_8bit_dw")
|
||||||
))]
|
))]
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub fn pixeldata(c: u16) {
|
pub fn pixeldata(c: u16) {
|
||||||
|
#[cfg(not(feature = "new_rendering"))]
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::DISPLAY_DATA_ADDRESS.write_volatile(c);
|
ffi::DISPLAY_DATA_ADDRESS.write_volatile(c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user