bugfix (APX2101 related)

pull/381/head
Hansi, dl9rdz 2023-08-28 12:02:36 +00:00
rodzic 86263a7ad1
commit c1231a11d4
3 zmienionych plików z 11 dodań i 14 usunięć

Wyświetl plik

@ -1739,18 +1739,17 @@ void setup()
if (pmu) {
Serial.println("PMU found");
pmu->init();
if (sonde.config.button2_axp ) {
//axp.enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_BATT_REMOVED_IRQ | AXP202_BATT_CONNECT_IRQ, 1);
//axp.enableIRQ( AXP202_PEK_LONGPRESS_IRQ | AXP202_PEK_SHORTPRESS_IRQ, 1 );
//axp.clearIRQ();
pmu->disableAllIRQ();
pmu->enableIRQ();
}
int ndevices = scanI2Cdevice();
if (sonde.fingerprint != 17 || ndevices > 0) break; // only retry for fingerprint 17 (startup problems of new t-beam with oled)
delay(500);
}
if (sonde.config.button2_axp ) {
//axp.enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_BATT_REMOVED_IRQ | AXP202_BATT_CONNECT_IRQ, 1);
//axp.enableIRQ( AXP202_PEK_LONGPRESS_IRQ | AXP202_PEK_SHORTPRESS_IRQ, 1 );
//axp.clearIRQ();
pmu->disableAllIRQ();
pmu->enableIRQ();
}
int ndevices = scanI2Cdevice();
if (sonde.fingerprint != 17 || ndevices > 0) break; // only retry for fingerprint 17 (startup problems of new t-beam with oled)
delay(500);
}
}
}

Wyświetl plik

@ -90,11 +90,9 @@ PMU *PMU::getInstance(TwoWire &wire) {
if(chipid==0x03) {
pmu = new AXP192PMU(wire);
}
#if 0
else if (chipid==0x4A) {
pmu = new AXP2101PMU(wire);
}
#endif
return pmu;
}

Wyświetl plik

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20230828";
const char *version_id = "devel20230828b";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=17;