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();