1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-01 11:28:20 +00:00

fix(core/prodtest): fix power management initialization in prodtest

[no changelog]
This commit is contained in:
tychovrahe 2025-05-05 09:56:58 +02:00 committed by kopecdav
parent c89ca35bbc
commit 7fa4e2d510

View File

@ -193,6 +193,9 @@ static bool g_rgbled_control_disabled = false;
void prodtest_disable_rgbled_control(void) { g_rgbled_control_disabled = true; }
static void drivers_init(void) {
#ifdef USE_BACKUP_RAM
backup_ram_init();
#endif
#ifdef USE_POWER_MANAGER
pm_init(true);
#endif
@ -211,9 +214,6 @@ static void drivers_init(void) {
#ifdef USE_SD_CARD
sdcard_init();
#endif
#ifdef USE_BACKUP_RAM
backup_ram_init();
#endif
#ifdef USE_BUTTON
button_init();
#endif
@ -261,9 +261,6 @@ int main(void) {
&g_cli, &_prodtest_cli_cmd_section_start,
&_prodtest_cli_cmd_section_end - &_prodtest_cli_cmd_section_start);
pm_turn_on();
pm_charging_enable();
#ifdef USE_OPTIGA
optiga_init();
optiga_open_application();