mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-23 03:25:42 +00:00
TEST: enable charging
This commit is contained in:
parent
48aa377929
commit
ed7645ac6b
@ -64,8 +64,10 @@
|
||||
#endif
|
||||
#ifdef USE_POWERCTL
|
||||
#include <sys/powerctl.h>
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user