sforkowany z mirror/meshtastic-firmware
now that axp192 interrups work, no need to poll over i2c. #48
rodzic
a0c97825e8
commit
5c4ae6c042
|
@ -342,8 +342,6 @@ void loop()
|
||||||
// for debug printing
|
// for debug printing
|
||||||
// service.radio.rf95.canSleep();
|
// service.radio.rf95.canSleep();
|
||||||
|
|
||||||
#ifdef T_BEAM_V10
|
|
||||||
if (axp192_found) {
|
|
||||||
#ifdef PMU_IRQ
|
#ifdef PMU_IRQ
|
||||||
if (pmu_irq) {
|
if (pmu_irq) {
|
||||||
pmu_irq = false;
|
pmu_irq = false;
|
||||||
|
@ -377,12 +375,6 @@ void loop()
|
||||||
isUSBPowered = axp.isVBUSPlug() ? 1 : 0;
|
isUSBPowered = axp.isVBUSPlug() ? 1 : 0;
|
||||||
axp.clearIRQ();
|
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
|
#endif
|
||||||
|
|
||||||
#ifdef BUTTON_PIN
|
#ifdef BUTTON_PIN
|
||||||
|
|
Ładowanie…
Reference in New Issue