From b2300d0c2330b1d7332c624e957e213c6d459c7a Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Fri, 11 Oct 2019 12:24:44 +0200 Subject: [PATCH] power.cpp sanitized --- src/power.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/power.cpp b/src/power.cpp index 7d29d5b4..6a819440 100644 --- a/src/power.cpp +++ b/src/power.cpp @@ -35,14 +35,14 @@ void power_event_IRQ(void) { ESP_LOGI(TAG, "Battery low temperature."); // display on/off - if (pmu.isPEKShortPressIRQ()) { - cfg.screenon = !cfg.screenon; - } + // if (pmu.isPEKShortPressIRQ()) { + // cfg.screenon = !cfg.screenon; + //} // shutdown power if (pmu.isPEKLongtPressIRQ()) { AXP192_power(false); // switch off Lora, GPS, display - pmu.shutdown(); + pmu.shutdown(); // switch off device } pmu.clearIRQ();