1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

fix(core): backlight on frozen emulator

[no changelog]
This commit is contained in:
Martin Milata 2023-06-28 17:20:21 +02:00
parent 671f23f1aa
commit edcdb97613
2 changed files with 2 additions and 2 deletions

View File

@ -694,7 +694,7 @@ if FROZEN:
source=SOURCE_PY,
source_dir=SOURCE_PY_DIR,
bitcoin_only=BITCOIN_ONLY,
backlight='backlight' in TREZOR_MODEL in ('T',)
backlight=TREZOR_MODEL in ('T',)
)
source_mpyc = env.FrozenCFile(

View File

@ -291,7 +291,7 @@ STATIC const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = {
#else
{MP_ROM_QSTR(MP_QSTR_USE_SD_CARD), mp_const_false},
#endif
#ifdef USE_SD_CARD
#ifdef USE_BACKLIGHT
{MP_ROM_QSTR(MP_QSTR_USE_BACKLIGHT), mp_const_true},
#else
{MP_ROM_QSTR(MP_QSTR_USE_BACKLIGHT), mp_const_false},