From ed7645ac6ba43c91fef8372ee810fa9193eef736 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 11 Mar 2025 03:41:10 +0100 Subject: [PATCH] TEST: enable charging --- core/embed/projects/bootloader/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/embed/projects/bootloader/main.c b/core/embed/projects/bootloader/main.c index d3fc12e1eb..fe2b9a3373 100644 --- a/core/embed/projects/bootloader/main.c +++ b/core/embed/projects/bootloader/main.c @@ -64,8 +64,10 @@ #endif #ifdef USE_POWERCTL #include +#ifndef TREZOR_EMULATOR #include "../sys/powerctl/npm1300/npm1300.h" #endif +#endif #include "antiglitch.h" #include "bootui.h" @@ -328,9 +330,11 @@ int bootloader_main(void) { } #ifdef USE_POWERCTL + #ifndef TREZOR_EMULATOR if (sectrue != manufacturing_mode || sectrue != firmware_present) { npm1300_set_charging(true); } + #endif #endif #if PRODUCTION && !defined STM32U5