diff --git a/core/embed/rust/src/ui/model_tt/component/hs_render.rs b/core/embed/rust/src/ui/model_tt/component/hs_render.rs index 39dac79c82..5f2b7b24fe 100644 --- a/core/embed/rust/src/ui/model_tt/component/hs_render.rs +++ b/core/embed/rust/src/ui/model_tt/component/hs_render.rs @@ -130,8 +130,8 @@ fn homescreen_position_text( let icon_size = if let Some(icon) = text.icon { let (icon_size, icon_data) = toif_info_ensure(icon, ToifFormat::GrayScaleEH); - assert!(icon_size.x < HOMESCREEN_MAX_ICON_SIZE); - assert!(icon_size.y < HOMESCREEN_MAX_ICON_SIZE); + assert!(icon_size.x <= HOMESCREEN_MAX_ICON_SIZE); + assert!(icon_size.y <= HOMESCREEN_MAX_ICON_SIZE); let mut ctx = UzlibContext::new(icon_data, None); unwrap!(ctx.uncompress(icon_buffer), "Decompression failed"); icon_size