power.cpp sanitized
This commit is contained in:
parent
a54033296a
commit
b2300d0c23
@ -35,14 +35,14 @@ void power_event_IRQ(void) {
|
|||||||
ESP_LOGI(TAG, "Battery low temperature.");
|
ESP_LOGI(TAG, "Battery low temperature.");
|
||||||
|
|
||||||
// display on/off
|
// display on/off
|
||||||
if (pmu.isPEKShortPressIRQ()) {
|
// if (pmu.isPEKShortPressIRQ()) {
|
||||||
cfg.screenon = !cfg.screenon;
|
// cfg.screenon = !cfg.screenon;
|
||||||
}
|
//}
|
||||||
|
|
||||||
// shutdown power
|
// shutdown power
|
||||||
if (pmu.isPEKLongtPressIRQ()) {
|
if (pmu.isPEKLongtPressIRQ()) {
|
||||||
AXP192_power(false); // switch off Lora, GPS, display
|
AXP192_power(false); // switch off Lora, GPS, display
|
||||||
pmu.shutdown();
|
pmu.shutdown(); // switch off device
|
||||||
}
|
}
|
||||||
|
|
||||||
pmu.clearIRQ();
|
pmu.clearIRQ();
|
||||||
|
Loading…
Reference in New Issue
Block a user