From 7fa4e2d510ae5dbb9013c4356e84cc6e3aea858d Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Mon, 5 May 2025 09:56:58 +0200 Subject: [PATCH] fix(core/prodtest): fix power management initialization in prodtest [no changelog] --- core/embed/projects/prodtest/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/embed/projects/prodtest/main.c b/core/embed/projects/prodtest/main.c index 06b8b8b942..da77332308 100644 --- a/core/embed/projects/prodtest/main.c +++ b/core/embed/projects/prodtest/main.c @@ -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();