From 46d32f8cfefe95c39ecbee40e69dd47103efa37a Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 22 Dec 2020 16:17:49 +0100 Subject: [PATCH] AXP192 longpress to switch off --- src/power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/power.cpp b/src/power.cpp index 7d49f5be..eb1586ee 100644 --- a/src/power.cpp +++ b/src/power.cpp @@ -131,7 +131,7 @@ void AXP192_init(void) { pmu.setDCDC1Voltage(3300); // for external OLED display pmu.setLDO2Voltage(3300); // LORA VDD 3v3 pmu.setLDO3Voltage(3300); // GPS VDD 3v3 - pmu.setTimeOutShutdown(false); // no automatic shutdown + pmu.setTimeOutShutdown(true); // shutdown by longpress pmu.setTSmode(AXP_TS_PIN_MODE_DISABLE); // TS pin mode off to save power // switch ADCs on