mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-29 18:08:19 +00:00
WIP - remove toif feature
This commit is contained in:
parent
f742318a08
commit
c9a164c52e
@ -9,7 +9,7 @@ build = "build.rs"
|
||||
default = ["model_tt"]
|
||||
bitcoin_only = []
|
||||
model_tt = ["jpeg"]
|
||||
model_tr = ["toif"]
|
||||
model_tr = []
|
||||
micropython = []
|
||||
protobuf = ["micropython"]
|
||||
ui = []
|
||||
@ -21,7 +21,6 @@ button = []
|
||||
touch = []
|
||||
clippy = []
|
||||
jpeg = []
|
||||
toif = []
|
||||
disp_i8080_8bit_dw = [] # write pixels directly to peripheral
|
||||
disp_i8080_16bit_dw = [] # write pixels directly to peripheral
|
||||
debug = ["ui_debug"]
|
||||
|
@ -19,15 +19,15 @@ use crate::{
|
||||
use cstr_core::cstr;
|
||||
use heapless::Vec;
|
||||
|
||||
#[cfg(any(feature = "toif", feature = "jpeg"))]
|
||||
use crate::micropython::{
|
||||
buffer::get_buffer,
|
||||
ffi::{mp_obj_new_int, mp_obj_new_tuple},
|
||||
};
|
||||
#[cfg(feature = "jpeg")]
|
||||
use crate::ui::display::tjpgd::{jpeg_info, jpeg_test};
|
||||
#[cfg(feature = "toif")]
|
||||
use crate::ui::display::toif::Toif;
|
||||
use crate::{
|
||||
micropython::{
|
||||
buffer::get_buffer,
|
||||
ffi::{mp_obj_new_int, mp_obj_new_tuple},
|
||||
},
|
||||
ui::display::toif::Toif,
|
||||
};
|
||||
|
||||
pub fn iter_into_objs<const N: usize>(iterable: Obj) -> Result<[Obj; N], Error> {
|
||||
let err = Error::ValueError(cstr!("Invalid iterable length"));
|
||||
@ -251,7 +251,6 @@ pub extern "C" fn upy_jpeg_info(data: Obj) -> Obj {
|
||||
unsafe { try_or_raise(block) }
|
||||
}
|
||||
|
||||
#[cfg(feature = "toif")]
|
||||
pub extern "C" fn upy_toif_info(data: Obj) -> Obj {
|
||||
let block = || {
|
||||
let buffer = unsafe { get_buffer(data) };
|
||||
|
Loading…
Reference in New Issue
Block a user