1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-24 15:38:22 +00:00

fix(core): move external tamper enable to secmon and only in production builds

[no changelog]
This commit is contained in:
tychovrahe 2025-06-18 12:45:06 +02:00 committed by TychoVrahe
parent 3e1c6b3f4b
commit ea889e109e
3 changed files with 6 additions and 3 deletions

View File

@ -229,9 +229,6 @@ static void drivers_init(secbool manufacturing_mode,
#ifdef USE_TAMPER
tamper_init();
if (manufacturing_mode != sectrue) {
tamper_external_enable();
}
#endif
#ifdef USE_TOUCH

View File

@ -109,6 +109,9 @@ void drivers_init() {
entropy_init();
#ifdef USE_TAMPER
tamper_init();
#if PRODUCTION
tamper_external_enable();
#endif
#endif
random_delays_init();
#ifdef RDI

View File

@ -63,6 +63,9 @@ static void drivers_init(void) {
#ifdef USE_TAMPER
tamper_init();
#if PRODUCTION
tamper_external_enable();
#endif
#endif
random_delays_init();