From d70df205fd7344471de44fc41c7bb9524f241be1 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Fri, 20 Sep 2019 18:58:49 +0200 Subject: [PATCH] PMU bugfix --- src/power.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/power.cpp b/src/power.cpp index b4198c1d..8d06c39d 100644 --- a/src/power.cpp +++ b/src/power.cpp @@ -60,14 +60,15 @@ void AXP192_power(bool on) { if (on) { pmu.setPowerOutPut(AXP192_LDO2, AXP202_ON); // Lora on T-Beam V1.0 pmu.setPowerOutPut(AXP192_LDO3, AXP202_ON); // Gps on T-Beam V1.0 - pmu.setPowerOutPut(AXP192_DCDC1, AXP202_ON); - pmu.setPowerOutPut(AXP192_DCDC3, AXP202_ON); + pmu.setPowerOutPut(AXP192_DCDC2, AXP202_ON); pmu.setPowerOutPut(AXP192_EXTEN, AXP202_ON); + pmu.setPowerOutPut(AXP192_DCDC1, AXP202_ON); + // pmu.setChgLEDMode(AXP20X_LED_LOW_LEVEL); pmu.setChgLEDMode(AXP20X_LED_BLINK_1HZ); } else { - pmu.setPowerOutPut(AXP192_EXTEN, AXP202_OFF); - pmu.setPowerOutPut(AXP192_DCDC3, AXP202_OFF); pmu.setPowerOutPut(AXP192_DCDC1, AXP202_OFF); + pmu.setPowerOutPut(AXP192_EXTEN, AXP202_OFF); + pmu.setPowerOutPut(AXP192_DCDC2, AXP202_OFF); pmu.setPowerOutPut(AXP192_LDO3, AXP202_OFF); pmu.setPowerOutPut(AXP192_LDO2, AXP202_OFF); pmu.setChgLEDMode(AXP20X_LED_OFF);