mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-05-14 16:55:10 +00:00
variants: XIAO NRF52: Enable DC/DC regulator
This reduces the power consumption by approximately 25%. Signed-off-by: Frieder Schrempf <frieder@fris.de>
This commit is contained in:
@@ -23,6 +23,7 @@ static void disconnect_callback(uint16_t conn_handle, uint8_t reason) {
|
||||
void XiaoNrf52Board::begin() {
|
||||
// for future use, sub-classes SHOULD call this from their begin()
|
||||
startup_reason = BD_STARTUP_NORMAL;
|
||||
NRF_POWER->DCDCEN = 1;
|
||||
|
||||
pinMode(PIN_VBAT, INPUT);
|
||||
pinMode(VBAT_ENABLE, OUTPUT);
|
||||
|
||||
Reference in New Issue
Block a user