1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-27 13:35:44 +00:00

charging start

This commit is contained in:
tychovrahe 2025-03-12 02:26:06 +01:00
parent 2adba6b638
commit 4e840cdd46

View File

@ -119,7 +119,6 @@ static secbool drivers_init(secbool *touch_initialized) {
} }
#endif #endif
#ifdef USE_OPTIGA #ifdef USE_OPTIGA
optiga_hal_init(); optiga_hal_init();
#endif #endif
@ -261,7 +260,7 @@ int bootloader_main(void) {
system_init(&rsod_panic_handler); system_init(&rsod_panic_handler);
secbool manufacturing_mode = drivers_init(&touch_initialized); secbool manufacturing_mode = drivers_init(&touch_initialized);
(void)manufacturing_mode; // can be unused on some models (void)manufacturing_mode; // can be unused on some models
ui_screen_boot_stage_1(false); ui_screen_boot_stage_1(false);
@ -330,11 +329,11 @@ int bootloader_main(void) {
} }
#ifdef USE_POWERCTL #ifdef USE_POWERCTL
#ifndef TREZOR_EMULATOR #ifndef TREZOR_EMULATOR
if (sectrue != manufacturing_mode || sectrue != firmware_present) { if (sectrue != manufacturing_mode || sectrue != firmware_present) {
npm1300_set_charging(true); npm1300_set_charging(true);
} }
#endif #endif
#endif #endif
#if PRODUCTION && !defined STM32U5 #if PRODUCTION && !defined STM32U5