now that axp192 interrups work, no need to poll over i2c. #48

1.2-legacy
geeksville 2020-03-27 12:37:47 -07:00
rodzic a0c97825e8
commit 5c4ae6c042
1 zmienionych plików z 25 dodań i 33 usunięć

Wyświetl plik

@ -342,8 +342,6 @@ void loop()
// for debug printing
// service.radio.rf95.canSleep();
#ifdef T_BEAM_V10
if (axp192_found) {
#ifdef PMU_IRQ
if (pmu_irq) {
pmu_irq = false;
@ -377,12 +375,6 @@ void loop()
isUSBPowered = axp.isVBUSPlug() ? 1 : 0;
axp.clearIRQ();
}
// FIXME AXP192 interrupt is not firing, remove this temporary polling of battery state
isCharging = axp.isChargeing() ? 1 : 0;
isUSBPowered = axp.isVBUSPlug() ? 1 : 0;
#endif
}
#endif
#ifdef BUTTON_PIN