mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
refactor(core): define USE_xxx consistently with feature flags
[no changelog]
This commit is contained in:
parent
7fc226258e
commit
82bc0ef186
@ -119,7 +119,6 @@ static bool detect_properties(unit_properties_t* props) {
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef USE_SD_CARD
|
||||
props->sd_hotswap_enabled = true;
|
||||
#ifdef TREZOR_MODEL_T
|
||||
// Early produced TTs have a HW bug that prevents hotswapping of the SD card,
|
||||
@ -129,7 +128,6 @@ static bool detect_properties(unit_properties_t* props) {
|
||||
if (production_year <= 18) {
|
||||
props->sd_hotswap_enabled = false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
@ -46,11 +46,9 @@ bool unit_properties_init(void) {
|
||||
|
||||
memset(drv, 0, sizeof(unit_properties_driver_t));
|
||||
|
||||
#ifdef USE_SD_CARD
|
||||
drv->cache.sd_hotswap_enabled = true;
|
||||
#ifdef TREZOR_MODEL_T
|
||||
drv->cache.sd_hotswap_enabled = false;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Properties detection is not fully implemented for emulator.
|
||||
|
Loading…
Reference in New Issue
Block a user