power.cpp sanitized

This commit is contained in:
Verkehrsrot 2019-10-11 12:24:44 +02:00
parent a54033296a
commit b2300d0c23

View File

@ -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();