From 4313b788b18bca3b7cf78247cb3450cf6273828a Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 4 Mar 2025 10:54:35 +0200 Subject: [PATCH] fixup! feat(core): estimate workflow stack usage --- core/embed/upymod/modtrezorutils/modtrezorutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/upymod/modtrezorutils/modtrezorutils.c b/core/embed/upymod/modtrezorutils/modtrezorutils.c index 303d718e43..e09b752abd 100644 --- a/core/embed/upymod/modtrezorutils/modtrezorutils.c +++ b/core/embed/upymod/modtrezorutils/modtrezorutils.c @@ -42,7 +42,7 @@ #include #endif -#if !PYOPT && !defined(TREZOR_EMULATOR) +#if !PYOPT && LOG_STACK_USAGE #include #endif @@ -275,7 +275,7 @@ STATIC mp_obj_t mod_trezorutils_estimate_unused_stack(void) { STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_trezorutils_estimate_unused_stack_obj, mod_trezorutils_estimate_unused_stack); -#endif // !PYOPT && !defined(TREZOR_EMULATOR) +#endif // !PYOPT && LOG_STACK_USAGE /// def reboot_to_bootloader( /// boot_command : int = 0,