mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 05:58:09 +00:00
fix(core): fix boot flags evaluation with new rendering
[no changelog]
This commit is contained in:
parent
4e1e3bc550
commit
42e001e6d3
@ -203,10 +203,10 @@ static void ui_screen_boot_click(void) {
|
||||
#ifdef NEW_RENDERING
|
||||
void ui_screen_boot(const vendor_header *const vhdr,
|
||||
const image_header *const hdr, int wait) {
|
||||
bool show_string = ((vhdr->vtrust & VTRUST_STRING) == 0);
|
||||
bool show_string = ((vhdr->vtrust & VTRUST_NO_STRING) == 0);
|
||||
const char *vendor_str = show_string ? vhdr->vstr : NULL;
|
||||
const size_t vendor_str_len = show_string ? vhdr->vstr_len : 0;
|
||||
bool red_screen = ((vhdr->vtrust & VTRUST_RED) == 0);
|
||||
bool red_screen = ((vhdr->vtrust & VTRUST_NO_RED) == 0);
|
||||
uint32_t vimg_len = *(uint32_t *)(vhdr->vimg + 8);
|
||||
|
||||
screen_boot(red_screen, vendor_str, vendor_str_len, hdr->version, vhdr->vimg,
|
||||
|
Loading…
Reference in New Issue
Block a user