mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-08 18:08:46 +00:00
TEST: enable charging
This commit is contained in:
parent
48aa377929
commit
ed7645ac6b
@ -64,8 +64,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifdef USE_POWERCTL
|
#ifdef USE_POWERCTL
|
||||||
#include <sys/powerctl.h>
|
#include <sys/powerctl.h>
|
||||||
|
#ifndef TREZOR_EMULATOR
|
||||||
#include "../sys/powerctl/npm1300/npm1300.h"
|
#include "../sys/powerctl/npm1300/npm1300.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "antiglitch.h"
|
#include "antiglitch.h"
|
||||||
#include "bootui.h"
|
#include "bootui.h"
|
||||||
@ -328,9 +330,11 @@ int bootloader_main(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_POWERCTL
|
#ifdef USE_POWERCTL
|
||||||
|
#ifndef TREZOR_EMULATOR
|
||||||
if (sectrue != manufacturing_mode || sectrue != firmware_present) {
|
if (sectrue != manufacturing_mode || sectrue != firmware_present) {
|
||||||
npm1300_set_charging(true);
|
npm1300_set_charging(true);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PRODUCTION && !defined STM32U5
|
#if PRODUCTION && !defined STM32U5
|
||||||
|
Loading…
Reference in New Issue
Block a user