bug #376 - stop using pmu IRQ - we don't need it and it causes LS wakes

This commit is contained in:
Kevin Hester
2020-10-06 12:45:19 +08:00
parent 943d5cb08d
commit 7854a22fbf
4 changed files with 12 additions and 8 deletions

View File

@@ -176,7 +176,7 @@ void doDeepSleep(uint64_t msecToWake)
// axp.setPowerOutPut(AXP192_LDO2, AXP202_OFF); // LORA radio
// now done by UBloxGPS.cpp
// now done by UBloxGPS.cpp
// setGPSPower(false);
}
#endif
@@ -275,7 +275,7 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r
gpio_wakeup_enable((gpio_num_t)RF95_IRQ_GPIO, GPIO_INTR_HIGH_LEVEL); // RF95 interrupt, active high
#endif
#ifdef PMU_IRQ
// FIXME, disable wake due to PMU because it seems to fire all the time?
// wake due to PMU can happen repeatedly if there is no battery installed or the battery fills
if (axp192_found)
gpio_wakeup_enable((gpio_num_t)PMU_IRQ, GPIO_INTR_LOW_LEVEL); // pmu irq
#endif